Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 5 of 5
  1. #1
    Join Date
    February 2010
    Location
    Seattle
    Posts
    69

    [PLUGIN API] sendPluginCommand SCOPE is not respected

    Currently, you are (assuming, it is not documented) able to specify a scope for a pluginCommand to be sent via sendPluginCommand(). However, TS3 does not respect the provided scope.

    Eg:
    ts3Functions.sendPluginCommand(ts3Functions.getCur rentServerConnectionHandlerID(), this->mCommandId, msg->getData(),
    PluginCommandTarget_CURRENT_CHANNEL, NULL);

    Broadcasts to *all* players on the server. no matter what channel they are in, all players receive this command.

    Repro steps:
    1. Register a valid plugin, with a valid command name.
    2. Setup the appropriate plugin callbacks
    3. Have 2 clients on a server, in seperate channels
    4. Call sendPluginCommand with PluginCommandTarget_CURRENT_CHANNEL
    5. See that all clients still receive the plugin command via ts3plugin_onPluginCommandEvent

  2. #2
    Join Date
    February 2010
    Location
    Seattle
    Posts
    69
    In regards to this question (I am an ACRE developer as well). Please see:
    http://forum.teamspeak.com/showthrea...776#post245776

    I am assuming I am calling scope correctly; However, sendPluginCommand is not documented past the plugin example.

    Could we either
    A. get confirmation on whether that is an actual bug, and
    B. Receive full documentation on the use of sendPluginCommand() ?


    Edit by mod
    Your post was completely Off-Topic and has been moved.
    Last edited by dante696; June 28th, 2010 at 07:34 AM.

  3. #3
    Join Date
    June 2002
    Location
    Krün / Germany
    Posts
    1,638
    could it be that the other client, who is not member of that targetchannel, got this channel subscribed?

    anyway... i changed the code so that it will only send to clients which are part of that channel, not anymore to all subscribers.

  4. #4
    Join Date
    March 2010
    Location
    Tacoma
    Posts
    68
    Unless the server can automatically subscribe you to channels on join with out your interaction (such as choosing them, or having previously joined them) then no, it was not a subscribers issue.

    I was immediately hit with plugin commands when I joined the sever and the other people using the plugin were in a channel I had never been in before.

  5. #5
    Join Date
    February 2010
    Location
    Seattle
    Posts
    69
    Quote Originally Posted by NouberNou View Post
    Unless the server can automatically subscribe you to channels on join with out your interaction (such as choosing them, or having previously joined them) then no, it was not a subscribers issue.

    I was immediately hit with plugin commands when I joined the sever and the other people using the plugin were in a channel I had never been in before.

    Just to clarify; it was a newly created channel for the test. That's what is meant by "never been in before"; obviously not pertinent now, but thought it might be worth noting because I know the newly created channel received a unique ID never present on the server before.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question regarding sendPluginCommand
    By MadStyleCow in forum General Questions
    Replies: 0
    Last Post: September 11th, 2013, 10:34 PM
  2. [Resolved] set3DWaveAttributes does not seem to be respected when playing files
    By jaynus in forum Bug Reports [EN/DE]
    Replies: 9
    Last Post: February 25th, 2011, 04:51 PM
  3. [Resolved] 3D Sound and Attenuation set via API's is not respected
    By jaynus in forum Bug Reports [EN/DE]
    Replies: 2
    Last Post: January 25th, 2011, 06:48 PM
  4. [Fixed?] sendPluginCommand defined scope still not respected
    By jaynus in forum Bug Reports [EN/DE]
    Replies: 1
    Last Post: August 27th, 2010, 01:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •