SteamWar/SpigotCore
Archiviert
13
0

Fix static final order
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2022-08-23 12:52:20 +02:00
Ursprung 2fb281a99a
Commit b4a14ed5ec

Datei anzeigen

@ -21,12 +21,6 @@ import java.util.function.BiFunction;
import java.util.logging.Level;
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<?> 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 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 String handlerName;
private final List<?> connections;