Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Nov 24 11:56
    PrinzKenny1 closed #335
  • Nov 18 20:43
    Likqez commented #343
  • Nov 17 14:32
    Likqez commented #343
  • Nov 17 09:55
    Likqez commented #343
  • Nov 16 17:21
    rogermb commented #343
  • Nov 15 18:27
    Likqez commented #343
  • Nov 13 18:07
    Likqez reopened #343
  • Nov 13 18:07
    Likqez commented #343
  • Nov 11 13:04
    Likqez closed #343
  • Nov 11 13:04
    Likqez commented #343
  • Nov 10 22:56
    rogermb commented #340
  • Nov 10 22:56
    rogermb labeled #340
  • Nov 10 22:51
    rogermb commented #343
  • Nov 10 22:48
    Likqez commented #340
  • Nov 10 22:47
    Likqez edited #343
  • Nov 10 22:47
    Likqez edited #343
  • Nov 10 22:47
    Likqez edited #343
  • Nov 10 22:46
    Likqez edited #343
  • Nov 10 22:46
    Likqez opened #343
  • Nov 10 15:05
    Rindula closed #339
Roger Baumgartner
@rogermb
What does not work?
JenkePlays
@JenkePlays_twitter
                                if(message.startsWith("!report " + name)) {
Name is a String.
Roger Baumgartner
@rogermb
Nah, just use message.startsWith("!report ")
That way you know the message starts with "!report ", now you only need to cut off that first part and you know who the client wanted to report
JenkePlays
@JenkePlays_twitter
Yes, But a message is sent to a server group where the string must be played back.
Roger Baumgartner
@rogermb
String name = message.substring("!report ".length())

where the string must be played back

"played back"?

JenkePlays
@JenkePlays_twitter
Thank You very much, my last questions how can i get the Client Channel Name.
Roger Baumgartner
@rogermb
"The name of the channel the client is currently in"?
JenkePlays
@JenkePlays_twitter
Yes
Roger Baumgartner
@rogermb
int clientId = ...
ClientInfo client = api.getClientInfo(clientId);
int channelId = client.getChannelId();
ChannelInfo channel = api.getChannelInfo(channelId);
String channelName = channel.getName();
JenkePlays
@JenkePlays_twitter
Thank You, its works.
Roger Baumgartner
@rogermb
Yay :smile:
JenkePlays
@JenkePlays_twitter
How to get all players of a Teampeak without api.getClients (); From?
Roger Baumgartner
@rogermb
... you just use TS3Api#getClients. Why would you not want to use that method that does exactly what you need it to do?
JenkePlays
@JenkePlays_twitter
I want to have from all clients the server group and only the people who are in a certain group but without api.getClients (); Because it takes too long to get all the clients through.
Roger Baumgartner
@rogermb
If it takes too long you're doing something wrong. Apart from that: TS3Api#getServerGroupClients(int), where the parameter is the ID of the server group you're interested in.
JenkePlays
@JenkePlays_twitter
for (Client client : api.getClients()) {
if (client.isInServerGroup(20) || client.isInServerGroup(24) || client.isInServerGroup(21) || client.isInServerGroup(22)) {
I make this so
Roger Baumgartner
@rogermb
Sure, and what are you doing with each of these clients?
JenkePlays
@JenkePlays_twitter
Iam poke the Clients
Roger Baumgartner
@rogermb

And that's what takes most of the time - no matter whether you're using TS3Api#getClients() or TS3Api#getServerGroupClients(int)

Actually, getClients is most likely faster if you have to check multiple server groups as it only involves a single API call

By default, TS3 servers only allow you to send 3 commands per second. That's why poking several people takes so long.
JenkePlays
@JenkePlays_twitter
And there is no solution to make it faster?
Roger Baumgartner
@rogermb
If you need faster rates than that, you need to whitelist the IP of your server query and then use FloodRate.UNLIMITED
For the former, look it up in the TS3 manual. The latter: Read through the README file of our API.
JenkePlays
@JenkePlays_twitter
How can I find tge IO of my Server Query ?
Roger Baumgartner
@rogermb
Run this from the computer you run your query from
Or if you run the query on the same machine as your server, you don't need to whitelist it
JenkePlays
@JenkePlays_twitter
How can I make the FloodRate Unlimited ?
Roger Baumgartner
@rogermb
TS3Config#setFloodRate
JenkePlays
@JenkePlays_twitter
Thank You its work.
JenkePlays
@JenkePlays_twitter
I become a Error: Exception in thread "[TeamSpeak-3-Java-API] SocketWriter" java.lang.NullPointerException
at com.github.theholywaffle.teamspeak3.commands.CommandEncoding.encode(CommandEncoding.java:34)
at com.github.theholywaffle.teamspeak3.commands.parameter.KeyValueParam.build(KeyValueParam.java:55)
at com.github.theholywaffle.teamspeak3.commands.parameter.Parameter.toString(Parameter.java:35)
at java.lang.String.valueOf(String.java:2994)
at java.lang.StringBuilder.append(StringBuilder.java:131)
at com.github.theholywaffle.teamspeak3.commands.Command.toString(Command.java:120)
at com.github.theholywaffle.teamspeak3.SocketWriter.run(SocketWriter.java:58)
Does anyone know why this is ?
Roger Baumgartner
@rogermb
One of your arguments to an API call was null
JenkePlays
@JenkePlays_twitter
                        api.editChannel(36, Collections.singletonMap(ChannelProperty.CHANNEL_PASSWORD, null));
Is this the Error ?
Roger Baumgartner
@rogermb
Yeah
Why would you do this??
JenkePlays
@JenkePlays_twitter
I will set the Password off.
How can i set the password off =
Roger Baumgartner
@rogermb
""
If the empty string doesn't work, you most likely can't change the password from a server query anyways
JenkePlays
@JenkePlays_twitter
ohhh, iam stupid :D
JenkePlays
@JenkePlays_twitter
How can i get the idle time of a player ?
OVer the Clientinfo ?
Roger Baumgartner
@rogermb
Dude, you're really starting to stretch it. I'm not your personal "google" - use your own brain.
If you're using an IDE, type "idle" and look for any suggestions. If you don't have an IDE, open the file ClientInfo.java and use a search function to look for "idle"
JenkePlays
@JenkePlays_twitter
Thx