Refactoring ts3handler initialisation
Dieser Commit ist enthalten in:
Ursprung
383501da41
Commit
4ac6811ac3
@ -48,7 +48,7 @@ public class BungeeCore extends Plugin {
|
|||||||
new EventStarter();
|
new EventStarter();
|
||||||
new Broadcaster();
|
new Broadcaster();
|
||||||
new SessionManager();
|
new SessionManager();
|
||||||
new TS3Handler();
|
TS3Handler.init();
|
||||||
PollSystem.init();
|
PollSystem.init();
|
||||||
ArenaMode.init();
|
ArenaMode.init();
|
||||||
|
|
||||||
|
@ -15,12 +15,13 @@ import java.util.HashMap;
|
|||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
public class TS3Handler {
|
public class TS3Handler {
|
||||||
|
private TS3Handler(){}
|
||||||
|
|
||||||
private static final Map<Integer, String> toVerify = new HashMap<>();
|
private static final Map<Integer, String> toVerify = new HashMap<>();
|
||||||
private static TS3Query query;
|
private static TS3Query query;
|
||||||
private static TS3Api api;
|
private static TS3Api api;
|
||||||
|
|
||||||
public TS3Handler(){
|
public static void init(){
|
||||||
TS3Config cfg = new TS3Config();
|
TS3Config cfg = new TS3Config();
|
||||||
cfg.setHost("127.0.0.1");
|
cfg.setHost("127.0.0.1");
|
||||||
query = new TS3Query(cfg);
|
query = new TS3Query(cfg);
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren