Dieser Commit ist enthalten in:
Ursprung
2fb281a99a
Commit
b4a14ed5ec
@ -21,12 +21,6 @@ import java.util.function.BiFunction;
|
|||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|
||||||
public class TinyProtocol implements Listener {
|
public class TinyProtocol implements Listener {
|
||||||
public static final TinyProtocol instance = new TinyProtocol(Core.getInstance());
|
|
||||||
private static int id = 0;
|
|
||||||
|
|
||||||
public static void init() {
|
|
||||||
//enforce init
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final Class<?> craftServer = Reflection.getClass("{obc}.CraftServer");
|
private static final Class<?> craftServer = Reflection.getClass("{obc}.CraftServer");
|
||||||
private static final Class<?> dedicatedPlayerList = Reflection.getClass("{nms.server.dedicated}.DedicatedPlayerList");
|
private static final Class<?> dedicatedPlayerList = Reflection.getClass("{nms.server.dedicated}.DedicatedPlayerList");
|
||||||
@ -39,6 +33,13 @@ public class TinyProtocol implements Listener {
|
|||||||
private static final Class<?> networkManager = Reflection.getClass("{nms.network}.NetworkManager");
|
private static final Class<?> networkManager = Reflection.getClass("{nms.network}.NetworkManager");
|
||||||
private static final FieldAccessor<List> getConnections = Reflection.getField(serverConnection, List.class, 0, networkManager);
|
private static final FieldAccessor<List> getConnections = Reflection.getField(serverConnection, List.class, 0, networkManager);
|
||||||
|
|
||||||
|
public static final TinyProtocol instance = new TinyProtocol(Core.getInstance());
|
||||||
|
private static int id = 0;
|
||||||
|
|
||||||
|
public static void init() {
|
||||||
|
//enforce init
|
||||||
|
}
|
||||||
|
|
||||||
private final Plugin plugin;
|
private final Plugin plugin;
|
||||||
private final String handlerName;
|
private final String handlerName;
|
||||||
private final List<?> connections;
|
private final List<?> connections;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren