+ * The game phase is used to optmize performance. A listener should only choose BOTH or LOGIN if it's absolutely necessary.
+ * @param plugin - the plugin that spawned this listener.
+ * @param connectionSide - the packet type the listener is looking for.
+ * @param gamePhase - which game phase this listener is active under.
+ * @param packets - the packet IDs the listener is looking for.
+ */
+ public PacketAdapter(Plugin plugin, ConnectionSide connectionSide, GamePhase gamePhase, Set
@@ -64,6 +77,7 @@ public abstract class PacketAdapter implements PacketListener {
* @param plugin - the plugin that spawned this listener.
* @param connectionSide - the packet type the listener is looking for.
* @param listenerPriority - the event priority.
+ * @param gamePhase - which game phase this listener is active under.
* @param packets - the packet IDs the listener is looking for.
*/
public PacketAdapter(Plugin plugin, ConnectionSide connectionSide, ListenerPriority listenerPriority, GamePhase gamePhase, Set
diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/injector/player/NetworkServerInjector.java b/ProtocolLib/src/main/java/com/comphenix/protocol/injector/player/NetworkServerInjector.java
index 993deb02..5f8330d0 100644
--- a/ProtocolLib/src/main/java/com/comphenix/protocol/injector/player/NetworkServerInjector.java
+++ b/ProtocolLib/src/main/java/com/comphenix/protocol/injector/player/NetworkServerInjector.java
@@ -19,7 +19,6 @@ package com.comphenix.protocol.injector.player;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
-import java.util.Set;
import java.util.logging.Logger;
import net.minecraft.server.Packet;