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 4 of 4
  1. #1
    Join Date
    December 2009
    Location
    Germany
    Posts
    25

    [Suggestion] getServerGroupList

    hi all

    i've got a suggestion for the plugin sdk.
    you could add for example these functions:
    -getServerGroupList
    -getServerGroupClientList
    ...

    because it's possible, that premissions are missing, these functions might fail or give a special return code back or sth like this.

    i think that the current way (requestServerGroupList,...) isn't so good, because you need to use the callback functions. but what's up if the call comes from deep inside the source of the plugin? might be a little heavy to implement it.

    yours tomix

  2. #2
    Join Date
    September 2008
    Location
    Brazil
    Posts
    26
    UP! need create functions in lua to get and set Client Group.

  3. #3
    Join Date
    November 2010
    Location
    Poland
    Posts
    55
    So you need function where they can asing channel group to client by his id.

    Yes i understan but at this time lua can`t asing anything at all! They monitor onEvent by many onEvent function and then can ececute one of comented function in ts3events.lua file in lua plugin.

    Also you can post at sugestion forum to add this function (requestChangeChannelClientGroup and requestAddServerGroup, requestRemoveServerGrpup). At this moment lua can only generate full query for client quest plugin only.

  4. #4
    Join Date
    September 2012
    Posts
    6,079
    As you already mentioned in your first post, getting a list of server groups is already possible by using the requestServerGroupList function.

    If you need the groups "deep inside" your code and don't want to / cannot wait for the callback might I suggest to cache these? Usually the available server groups do not change that often...
    You could use the onConnectStatusChangedEvent to request a list of server groups when you are connected to the server and then use the callback functions that will be called to store the available groups into a variable.
    Then whenever you need those you can use that variable and will the groups available..

    the onServerGroupListEvent is also called whenever a new group gets created or removed so you can use that to keep your internal list up to date.

    The same thing is possible in LUA as well.
    Last edited by Chris; October 15th, 2012 at 06:29 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Resolved] [Suggestion] new voice codec suggestion "Opus"
    By DGMurdockIII in forum Suggestions and Feedback
    Replies: 13
    Last Post: December 1st, 2012, 09:35 AM
  2. suggestion
    By Kreathor in forum Permission System
    Replies: 1
    Last Post: January 21st, 2011, 12:58 AM

Posting Permissions

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