From 07b9718805f5ec1c16a97b744325facf56d269bd Mon Sep 17 00:00:00 2001 From: mane Date: Sat, 4 Aug 2018 20:12:55 -0400 Subject: [PATCH] Update README.md --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 560bbef..3af42e8 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,22 @@ If you are familiar with the Java Teamspeak3 serverQuery API, you will hit the g TS3J is formatted and stubbed for server support, and no logic has been written. I've discovered that, with the protocol reversed, it may be possible to make a server that doesn't adhere to the licensing restrictions. While nobody can stop anyone from making a reverse-engineered server as well now, I won't be sharing any code for one. -# Current Status +# Usage -It should work, I'm using it on my bot +``` +client = new LocalTeamspeakClientSocket(); + +// Set up client +client.setIdentity(identity); +client.addListener(listener); +client.setNickname(nickname); + +client.connect( + new InetSocketAddress( + InetAddress.getByName(address), + port + ), + password, + 10000L +); +```