Must get client ID properly there
This commit is contained in:
+5
-1
@@ -781,7 +781,11 @@ public class LocalTeamspeakClientSocket
|
|||||||
new CommandSingleParameter("clid", Integer.toString(clientId))
|
new CommandSingleParameter("clid", Integer.toString(clientId))
|
||||||
);
|
);
|
||||||
|
|
||||||
Iterable<Client> clients = executeCommand(command, x -> new Client(x.toMap())).get();
|
Iterable<Client> clients = executeCommand(command, x -> {
|
||||||
|
Map<String, String> map = x.toMap();
|
||||||
|
map.put("clid", Integer.toString(clientId));
|
||||||
|
return new Client(map);
|
||||||
|
}).get();
|
||||||
return clients.iterator().next();
|
return clients.iterator().next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
package com.github.manevolent.ts3j;
|
package com.github.manevolent.ts3j;
|
||||||
|
|
||||||
import com.github.manevolent.ts3j.api.Channel;
|
|
||||||
import com.github.manevolent.ts3j.api.Client;
|
import com.github.manevolent.ts3j.api.Client;
|
||||||
import com.github.manevolent.ts3j.identity.LocalIdentity;
|
import com.github.manevolent.ts3j.identity.LocalIdentity;
|
||||||
import com.github.manevolent.ts3j.protocol.client.ClientConnectionState;
|
import com.github.manevolent.ts3j.protocol.client.ClientConnectionState;
|
||||||
|
|||||||
Reference in New Issue
Block a user