SteamWar/SpigotCore
Archiviert
13
0

Fix TinyProtocol null player issues #207

Zusammengeführt
Lixfel hat 7 Commits von minifyTinyProtocol nach master 2022-08-23 14:10:15 +02:00 zusammengeführt
Nur Änderungen aus Commit b4a14ed5ec werden angezeigt - Alle Commits anzeigen

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;