public class JTS3ServerQuery extends Object
Modifier and Type | Field and Description |
---|---|
boolean |
DEBUG
Setting DEBUG to
true will write every internal exception into an error log file and write the communication log file. |
String |
DEBUG_COMMLOG_PATH
Set the path to the communication log file or
null to disable writing of this log file. |
String |
DEBUG_ERRLOG_PATH
Set the path to the error log file or
null to disable writing of this log file. |
static int |
EVENT_MODE_CHANNEL
Event mode for addEventNotify() to add channel events (like clients join or left the channel).
|
static int |
EVENT_MODE_SERVER
Event mode for addEventNotify() to add server events (like clients join or left the server).
|
static int |
EVENT_MODE_TEXTCHANNEL
Event mode for addEventNotify() to add channel chat events (like receiving or sending chat messages).
|
static int |
EVENT_MODE_TEXTPRIVATE
Event mode for addEventNotify() to add private chat events (like receiving or sending chat messages).
|
static int |
EVENT_MODE_TEXTSERVER
Event mode for addEventNotify() to add server chat events (like receiving or sending chat messages).
|
static int |
INFOMODE_CHANNELINFO
Info mode for getInfo(), use this mode to get information about a channel.
|
static int |
INFOMODE_CLIENTDBINFO
Info mode for getInfo(), use this mode to get information about a client from the database.
|
static int |
INFOMODE_CLIENTINFO
Info mode for getInfo(), use this mode to get information about a client.
|
static int |
INFOMODE_SERVERINFO
Info mode for getInfo(), use this mode to get information about the current selected server.
|
static int |
LISTMODE_BANLIST
List mode for getList(), use this mode to get a list of bans.
|
static int |
LISTMODE_CHANNELGROUPLIST
List mode for getList(), use this mode to get a list of channel groups.
|
static int |
LISTMODE_CHANNELLIST
List mode for getList(), use this mode to get a list of current channels.
|
static int |
LISTMODE_CLIENTDBLIST
List mode for getList(), use this mode to get a list of all clients in database.
|
static int |
LISTMODE_CLIENTLIST
List mode for getList(), use this mode to get a list of clients currently online.
|
static int |
LISTMODE_COMPLAINLIST
List mode for getList(), use this mode to get a list of complains.
|
static int |
LISTMODE_PERMISSIONLIST
List mode for getList(), use this mode to get a list of permissions.
|
static int |
LISTMODE_SERVERGROUPCLIENTLIST
List mode for getList(), use this mode to get a list of server group members.
|
static int |
LISTMODE_SERVERGROUPLIST
List mode for getList(), use this mode to get a list of server groups.
|
static int |
LISTMODE_SERVERGROUPSBYCLIENTID
List mode for getList(), use this mode to get a list of server groups from a client.
|
static int |
LISTMODE_SERVERLIST
List mode for getList(), use this mode to get a list of virtual servers.
|
static int |
PERMLISTMODE_CHANNEL
Permission list mode for getPermissionList(), use this mode to get a list of channel permissions.
|
static int |
PERMLISTMODE_CLIENT
Permission list mode for getPermissionList(), use this mode to get a list of client permissions.
|
static int |
PERMLISTMODE_SERVERGROUP
Permission list mode for getPermissionList(), use this mode to get a list of server group permissions.
|
static int |
TEXTMESSAGE_TARGET_CHANNEL
Text message target mode for sendTextMessage() to send a message to a channel.
|
static int |
TEXTMESSAGE_TARGET_CLIENT
Text message target mode for sendTextMessage() to send a message to a single client.
|
static int |
TEXTMESSAGE_TARGET_GLOBAL
Text message target mode for sendTextMessage() to send a message to all virtual servers.
|
static int |
TEXTMESSAGE_TARGET_VIRTUALSERVER
Text message target mode for sendTextMessage() to send a message to a virtual server.
|
Constructor and Description |
---|
JTS3ServerQuery() |
JTS3ServerQuery(String threadName)
New JTS3ServerQuery object which allows to set a prefix for the handleAction thread name.
|
Modifier and Type | Method and Description |
---|---|
void |
addEventNotify(int eventMode,
int channelID)
Activate a Teamspeak event notify.
|
void |
changeThreadName(String threadName)
Set a new thread name prefix
|
void |
closeTS3Connection()
Close the query connection.
|
void |
complainAdd(int clientDBID,
String msg)
Add a complain to a client.
|
void |
complainDelete(int clientDBID,
int deleteClientDBID)
Deletes complains from a client (from a specified sender).
|
void |
connectTS3Query(String ip,
int queryport)
Open a query connection to the TS3 server.
|
void |
connectTS3Query(String ip,
int queryport,
String localIP,
int localPort)
Open a query connection to the TS3 server, you can set a local IP and port to bind the socket to it.
|
String |
decodeTS3String(String str)
Convert escaped characters to normal characters.
|
void |
deleteChannel(int channelID,
boolean forceDelete)
Delete a channel of the server.
|
HashMap<String,String> |
doCommand(String command)
Send a single command to the TS3 server and read the response.
|
String |
encodeTS3String(String str)
Escape all special characters for the TS3 server.
|
int |
getClientDBIDFromUID(String uniqueID)
Get the client database id of a client unique id.
|
int |
getCurrentQueryClientChannelID()
Returns the current channel ID of the query client.
|
int |
getCurrentQueryClientDatabaseID()
Returns the current client database ID of the query connection.
|
int |
getCurrentQueryClientID()
Returns the current client ID of the query connection.
|
String |
getCurrentQueryClientName()
Returns the current client name of the query client.
|
int |
getCurrentQueryClientServerID()
Returns the current virtual server ID of the query connection.
|
int |
getCurrentQueryClientServerPort()
Returns the current virtual server port of the query connection.
|
String |
getCurrentQueryClientUniqueID()
Returns the current client unique ID of the query connection.
|
HashMap<String,String> |
getInfo(int infoMode,
int objectID)
Get information about a server, channel or client.
|
Vector<HashMap<String,String>> |
getList(int listMode)
Get a list from the TS3 server.
|
Vector<HashMap<String,String>> |
getList(int listMode,
String arguments)
Get a list from the TS3 server.
|
Vector<HashMap<String,String>> |
getLogEntries(int linesCount,
boolean reverse,
boolean masterlog,
int beginpos)
Returns log entries.
|
HashMap<String,String> |
getPermissionInfo(int permID)
Get information about a permission ID.
|
Vector<HashMap<String,String>> |
getPermissionList(int permListMode,
int targetID)
Get a list of permissions of a server group / channel / client.
|
boolean |
isConnected()
Check if connected to the TS3 server.
|
void |
kickClient(int clientID,
boolean onlyChannelKick,
String kickReason)
Kick a client from channel or from server.
|
void |
loginTS3(String loginname,
String password)
Login with an account.
|
void |
moveClient(int clientID,
int channelID,
String channelPassword)
Move a client into another channel.
|
HashMap<String,String> |
parseLine(String line)
Parse an unformatted single line response from TS3 server, like from the doCommand method.
|
Vector<HashMap<String,String>> |
parseRawData(String rawData)
Parse unformatted response from TS3 server, like from the doCommand method.
|
void |
pokeClient(int clientID,
String msg)
Poke a client.
|
void |
removeAllEvents()
Removes all activated events.
|
void |
removeTeamspeakActionListener()
Remove the class from receiving Teamspeak events.
|
Vector<Integer> |
searchClientDB(String search,
boolean isUID)
Searching for clients in the TS3 client database, useful for the getInfo() method to request more information.
|
void |
selectVirtualServer(int serverID)
Select a virtual server to work with.
|
void |
selectVirtualServer(int server,
boolean selectPort)
Select a virtual server to work with.
|
void |
selectVirtualServer(int server,
boolean selectPort,
boolean virtual)
Select a virtual server to work with.
|
void |
sendTextMessage(int targetID,
int targetMode,
String msg)
Sends a text message to a client / channel / virtual server / global (all virtual servers).
|
void |
sendTextMessage(int targetID,
int targetMode,
String msg,
String channelPassword)
Sends a text message to a client / channel / virtual server / global (all virtual servers).
|
void |
setDisplayName(String displayName)
Change the display name on the Teamspeak 3 server of this query connection.
|
void |
setTeamspeakActionListener(TeamspeakActionListener listenerClass)
Set a class that should receive the Teamspeak events.
|
public boolean DEBUG
true
will write every internal exception into an error log file and write the communication log file.
It is also possible to set the filename and path to the communication and error log file, see DEBUG_COMMLOG_PATH and DEBUG_ERRLOG_PATH.DEBUG_COMMLOG_PATH
,
DEBUG_ERRLOG_PATH
public String DEBUG_COMMLOG_PATH
null
to disable writing of this log file.
This will be used only if DEBUG is set to true
.
In the communication log file you can see any outgoing and incoming messages between this library and the TS3 server.DEBUG
public String DEBUG_ERRLOG_PATH
null
to disable writing of this log file.
This will be used only if DEBUG is set to true
.
In the error log file you can see all internal exceptions thrown by this library.DEBUG
public static final int EVENT_MODE_CHANNEL
addEventNotify(int, int)
,
Constant Field Valuespublic static final int EVENT_MODE_SERVER
addEventNotify(int, int)
,
Constant Field Valuespublic static final int EVENT_MODE_TEXTCHANNEL
addEventNotify(int, int)
,
Constant Field Valuespublic static final int EVENT_MODE_TEXTPRIVATE
addEventNotify(int, int)
,
Constant Field Valuespublic static final int EVENT_MODE_TEXTSERVER
addEventNotify(int, int)
,
Constant Field Valuespublic static final int INFOMODE_CHANNELINFO
getInfo(int, int)
,
Constant Field Valuespublic static final int INFOMODE_CLIENTDBINFO
getInfo(int, int)
,
Constant Field Valuespublic static final int INFOMODE_CLIENTINFO
getInfo(int, int)
,
Constant Field Valuespublic static final int INFOMODE_SERVERINFO
getInfo(int, int)
,
Constant Field Valuespublic static final int LISTMODE_BANLIST
getList(int)
,
getList(int, String)
,
Constant Field Valuespublic static final int LISTMODE_CHANNELGROUPLIST
getList(int)
,
getList(int, String)
,
Constant Field Valuespublic static final int LISTMODE_CHANNELLIST
-topic
-flags
-voice
-limits
-icon
-secondsempty
getList(int)
,
getList(int, String)
,
Constant Field Valuespublic static final int LISTMODE_CLIENTDBLIST
start=<number>
duration=<number>
-count
start=0
duration=25
getList(int)
,
getList(int, String)
,
Constant Field Valuespublic static final int LISTMODE_CLIENTLIST
-uid
-away
-voice
-times
-groups
-info
-icon
-country
-ip
getList(int)
,
getList(int, String)
,
Constant Field Valuespublic static final int LISTMODE_COMPLAINLIST
tcldbid=<client database ID>
tcldbid=2
getList(int)
,
getList(int, String)
,
Constant Field Valuespublic static final int LISTMODE_PERMISSIONLIST
getList(int)
,
getList(int, String)
,
Constant Field Valuespublic static final int LISTMODE_SERVERGROUPCLIENTLIST
sgid=<server group ID>
sgid=6
-names
getList(int)
,
getList(int, String)
,
Constant Field Valuespublic static final int LISTMODE_SERVERGROUPLIST
getList(int)
,
getList(int, String)
,
Constant Field Valuespublic static final int LISTMODE_SERVERGROUPSBYCLIENTID
cldbid=<client database ID>
cldbid=159
getList(int)
,
getList(int, String)
,
Constant Field Valuespublic static final int LISTMODE_SERVERLIST
-all
-onlyoffline
-short
-uid
getList(int)
,
getList(int, String)
,
Constant Field Valuespublic static final int PERMLISTMODE_CHANNEL
getPermissionList(int, int)
,
Constant Field Valuespublic static final int PERMLISTMODE_CLIENT
getPermissionList(int, int)
,
Constant Field Valuespublic static final int PERMLISTMODE_SERVERGROUP
getPermissionList(int, int)
,
Constant Field Valuespublic static final int TEXTMESSAGE_TARGET_CHANNEL
public static final int TEXTMESSAGE_TARGET_CLIENT
public static final int TEXTMESSAGE_TARGET_GLOBAL
public static final int TEXTMESSAGE_TARGET_VIRTUALSERVER
public JTS3ServerQuery()
public JTS3ServerQuery(String threadName)
threadName
- Prefix of the thread namepublic void addEventNotify(int eventMode, int channelID) throws TS3ServerQueryException
eventMode
- Use an EVENT_MODE constantchannelID
- A channel ID, only needed for EVENT_MODE_CHANNEL. Use any number for any other EVENT_MODE.TS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server or no TeamspeakActionListener class was set using setTeamspeakActionListener().IllegalArgumentException
- If invalid eventMode was given.EVENT_MODE_CHANNEL
,
EVENT_MODE_SERVER
,
EVENT_MODE_TEXTCHANNEL
,
EVENT_MODE_TEXTPRIVATE
,
EVENT_MODE_TEXTSERVER
,
setTeamspeakActionListener(TeamspeakActionListener)
public void changeThreadName(String threadName)
threadName
- - The new prefixpublic void closeTS3Connection()
public void complainAdd(int clientDBID, String msg) throws TS3ServerQueryException
clientDBID
- The client database ID, which should get the complain.msg
- The message of the complain.TS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server.IllegalArgumentException
- If no message given.public void complainDelete(int clientDBID, int deleteClientDBID) throws TS3ServerQueryException
clientDBID
- The client database ID, which should get a complain removed.deleteClientDBID
- Delete complains submitted from this client database ID.TS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server.IllegalArgumentException
- If no message given.public void connectTS3Query(String ip, int queryport) throws Exception
ip
- IP or Host address to the TS3 serverqueryport
- Query Port of the TS3 serverIllegalStateException
- If already connected or an invalid response detected.EOFException
- If the connection was closed unexpected (maybe banned by the TS3 server).IOException
- If an I/O error occurs when creating the socket or streams.UnsupportedEncodingException
- If the UTF-8 charset is not supported.Exception
public void connectTS3Query(String ip, int queryport, String localIP, int localPort) throws Exception
ip
- IP or Host address to the TS3 serverqueryport
- Query Port of the TS3 serverlocalIP
- Local IP address to bind the socket or null
to bind to default IP. localPort must be set to use localIP.localPort
- Local Port to bind the socket, localIP must be set to use localPort.IllegalStateException
- If already connected or an invalid response detected.EOFException
- If the connection was closed unexpected (maybe banned by the TS3 server).IOException
- If an I/O error occurs when creating the socket or streams.UnsupportedEncodingException
- If the UTF-8 charset is not supported.Exception
public String decodeTS3String(String str)
str
- The String which should be unescaped.doCommand(String)
,
parseRawData(String)
public void deleteChannel(int channelID, boolean forceDelete) throws TS3ServerQueryException
channelID
- The Channel ID to be deletedforceDelete
- true
for a force channel delete (kicks also clients out of it), false
to delete only an empty channelTS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server.public HashMap<String,String> doCommand(String command)
channeldelete
clientmove
use
command
- Any TS3 telnet command, see TS3 documentation or use the help
command.id
(error id), msg
(error message) and response
(unformatted server response).IllegalArgumentException
- If command missing or not allowed.IllegalStateException
- If not connected to a TS3 server or connection was closed while receiving the response.deleteChannel(int, boolean)
,
moveClient(int, int, String)
,
selectVirtualServer(int)
public String encodeTS3String(String str)
str
- The String which should be escaped.doCommand(String)
public int getClientDBIDFromUID(String uniqueID) throws TS3ServerQueryException
uniqueID
- The client unique id.TS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server or invalid server response received.IllegalArgumentException
- If uniqueID argument is invalid or missing.NumberFormatException
- If the TS3 server sends an invalid client db id.public int getCurrentQueryClientChannelID()
public int getCurrentQueryClientDatabaseID()
public int getCurrentQueryClientID()
public String getCurrentQueryClientName()
null
if nothing set.public int getCurrentQueryClientServerID()
public int getCurrentQueryClientServerPort()
public String getCurrentQueryClientUniqueID()
public HashMap<String,String> getInfo(int infoMode, int objectID) throws TS3ServerQueryException
infoMode
- An INFOMODE constant.objectID
- A channel or client ID, use any number for server information.TS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server or invalid server response received.IllegalArgumentException
- If infoMode argument is invalid.INFOMODE_CHANNELINFO
,
INFOMODE_CLIENTINFO
,
INFOMODE_CLIENTDBINFO
,
INFOMODE_SERVERINFO
,
selectVirtualServer(int)
public Vector<HashMap<String,String>> getList(int listMode) throws TS3ServerQueryException
listMode
- Use a LISTMODE constantTS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server or invalid server response received.IllegalArgumentException
- If listMode argument is invalid.LISTMODE_BANLIST
,
LISTMODE_CHANNELLIST
,
LISTMODE_CLIENTDBLIST
,
LISTMODE_CLIENTLIST
,
LISTMODE_COMPLAINLIST
,
LISTMODE_PERMISSIONLIST
,
LISTMODE_SERVERGROUPLIST
,
LISTMODE_SERVERLIST
,
LISTMODE_SERVERGROUPCLIENTLIST
,
LISTMODE_SERVERGROUPSBYCLIENTID
public Vector<HashMap<String,String>> getList(int listMode, String arguments) throws TS3ServerQueryException
listMode
- Use a LISTMODE constantarguments
- A comma separated list of arguments or a single argument for the LISTMODE. Or just null
if no arguments needed.TS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server or invalid server response received.IllegalArgumentException
- If listMode argument is invalid.LISTMODE_BANLIST
,
LISTMODE_CHANNELLIST
,
LISTMODE_CLIENTDBLIST
,
LISTMODE_CLIENTLIST
,
LISTMODE_COMPLAINLIST
,
LISTMODE_PERMISSIONLIST
,
LISTMODE_SERVERGROUPLIST
,
LISTMODE_SERVERLIST
,
LISTMODE_SERVERGROUPCLIENTLIST
,
LISTMODE_SERVERGROUPSBYCLIENTID
public Vector<HashMap<String,String>> getLogEntries(int linesCount, boolean reverse, boolean masterlog, int beginpos) throws TS3ServerQueryException
linesCount
- How many log entries should be returned, has to be between 1 and 100.reverse
- Return lines in reverse order of the log (newest entry first)?masterlog
- Return lines from master instance log? Set to false to get the log entries of the selected server!beginpos
- Start position in bytes, default is 0.TS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server or invalid server response received.IllegalArgumentException
- If listLimitCount or beginpos argument is invalid.public HashMap<String,String> getPermissionInfo(int permID) throws TS3ServerQueryException
permid
with the permission IDpermname
with the permission namepermdesc
with the permission description (may be empty, if not exist)permID
- A permission IDTS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server or invalid server response received.public Vector<HashMap<String,String>> getPermissionList(int permListMode, int targetID) throws TS3ServerQueryException
permListMode
- A PERMLISTMODE constanttargetID
- A channel, client or server group IDTS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server or invalid server response received.IllegalArgumentException
- If permListMode argument is invalid.PERMLISTMODE_CHANNEL
,
PERMLISTMODE_CLIENT
,
PERMLISTMODE_SERVERGROUP
public boolean isConnected()
true
if connected, false
if not.public void kickClient(int clientID, boolean onlyChannelKick, String kickReason) throws TS3ServerQueryException
clientID
- The Client ID to be kickedonlyChannelKick
- true
for a channel kick, false
for a server kickkickReason
- The kick reasonTS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server.public void loginTS3(String loginname, String password) throws TS3ServerQueryException
loginname
- Login namepassword
- Login passwordTS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server.public void moveClient(int clientID, int channelID, String channelPassword) throws TS3ServerQueryException
clientID
- Current Client IDchannelID
- Target Channel IDchannelPassword
- Password of the target channel or null
if no password neededTS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server.public HashMap<String,String> parseLine(String line)
line
- The unformatted single line TS3 server responseNullPointerException
- If line is null
.getList(int)
,
getList(int, String)
,
parseRawData(String)
public Vector<HashMap<String,String>> parseRawData(String rawData)
rawData
- The unformatted TS3 server response.NullPointerException
- If rawData is null
.parseLine(String)
public void pokeClient(int clientID, String msg) throws TS3ServerQueryException
clientID
- The client ID, which should get the message.msg
- The message for the message dialog.TS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server.IllegalArgumentException
- If no message given.public void removeAllEvents() throws TS3ServerQueryException
TS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server.public void removeTeamspeakActionListener() throws TS3ServerQueryException
TS3ServerQueryException
- If the TS3 server is returning an error code/message.public Vector<Integer> searchClientDB(String search, boolean isUID) throws TS3ServerQueryException
search
- The search string, you can use the % character as wildcard.isUID
- If the search string is a unique id, set true
here. If not, set false
.TS3ServerQueryException
- If the TS3 server is returning an error code/message.getInfo(int, int)
public void selectVirtualServer(int serverID) throws TS3ServerQueryException
serverID
- A virtual server idTS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server.public void selectVirtualServer(int server, boolean selectPort) throws TS3ServerQueryException
server
- A virtual server id or portselectPort
- true
if server
is the virtual server port, false
if server
is the virtual server id.TS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server.public void selectVirtualServer(int server, boolean selectPort, boolean virtual) throws TS3ServerQueryException
server
- A virtual server id or portselectPort
- true
if server
is the virtual server port, false
if server
is the virtual server id.virtual
- true
if you want to select the virtual server in virtual mode (use this if the server is offline).TS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server.public void sendTextMessage(int targetID, int targetMode, String msg) throws TS3ServerQueryException
targetID
- The client, channel or virtual server id. Use any number for a global message.targetMode
- A text message target mode constantmsg
- The message to be sendTS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server.IllegalArgumentException
- If no message or an invalid targetMode given.TEXTMESSAGE_TARGET_CLIENT
,
TEXTMESSAGE_TARGET_CHANNEL
,
TEXTMESSAGE_TARGET_VIRTUALSERVER
,
TEXTMESSAGE_TARGET_GLOBAL
,
moveClient(int, int, String)
,
selectVirtualServer(int)
public void sendTextMessage(int targetID, int targetMode, String msg, String channelPassword) throws TS3ServerQueryException
targetID
- The client, channel or virtual server id. Use any number for a global message.targetMode
- A text message target mode constantmsg
- The message to be sendchannelPassword
- Channel password, is only needed for a text message to channel. Use null
if channel has no password or not a channel text message.TS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server.IllegalArgumentException
- If no message or an invalid targetMode given.TEXTMESSAGE_TARGET_CLIENT
,
TEXTMESSAGE_TARGET_CHANNEL
,
TEXTMESSAGE_TARGET_VIRTUALSERVER
,
TEXTMESSAGE_TARGET_GLOBAL
,
moveClient(int, int, String)
,
selectVirtualServer(int)
public void setDisplayName(String displayName) throws TS3ServerQueryException
displayName
- A String with the new display name of this connection.TS3ServerQueryException
- If the TS3 server is returning an error code/message.IllegalStateException
- If not connected to a TS3 server.IllegalArgumentException
- If displayName is null
or shorter than 3 characters.public void setTeamspeakActionListener(TeamspeakActionListener listenerClass)
listenerClass
- - A class that implements the TeamspeakActionListener interface.TeamspeakActionListener