Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. package com.nachoben;
  2.  
  3. import com.github.theholywaffle.teamspeak3.TS3Api;
  4. import com.github.theholywaffle.teamspeak3.TS3Config;
  5. import com.github.theholywaffle.teamspeak3.TS3Query;
  6. import supportbot.event.event;
  7.  
  8. import java.awt.*;
  9.  
  10. public class supportbot {
  11.  
  12. public static final TS3Config config = new TS3Config();
  13. public static final TS3Query query = new TS3Query(config);
  14. public static final TS3Api api = query.getApi();
  15.  
  16. public static void main (String[] args) {
  17. config.setHost("nachcrew.de");
  18. config.setQueryPort(10011);
  19. config.setFloodRate(TS3Query.FloodRate.UNLIMITED);
  20. query.connect();
  21. api.login("serveradmin", "DlLwJqol");
  22. api.selectVirtualServerByPort(9992);
  23. api.setNickname("SupportBot");
  24. event.loadEvents();
  25. System.out.println("Der Bot ist gestartet!");
  26. }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement