diff --git a/bukkit/pom.xml b/bukkit/pom.xml
index e8a5f0b7..b79b9b45 100644
--- a/bukkit/pom.xml
+++ b/bukkit/pom.xml
@@ -65,7 +65,7 @@
org.spigotmc
spigot-api
- 1.10.2-R0.1-SNAPSHOT
+ 1.11-R0.1-SNAPSHOT
provided
@@ -80,7 +80,7 @@
com.github.ProtocolSupport
ProtocolSupport
- 5554413b51
+ a4f060dc46
diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/FastLoginBukkit.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/FastLoginBukkit.java
index de938b61..1a6b650c 100644
--- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/FastLoginBukkit.java
+++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/FastLoginBukkit.java
@@ -1,8 +1,6 @@
package com.github.games647.fastlogin.bukkit;
import com.avaje.ebeaninternal.api.ClassUtil;
-import com.comphenix.protocol.AsynchronousManager;
-import com.comphenix.protocol.ProtocolLibrary;
import com.github.games647.fastlogin.bukkit.commands.CrackedCommand;
import com.github.games647.fastlogin.bukkit.commands.ImportCommand;
import com.github.games647.fastlogin.bukkit.commands.PremiumCommand;
@@ -89,13 +87,13 @@ public class FastLoginBukkit extends JavaPlugin implements PlatformPluginS : Handshake State=2
* C->S : Login Start
diff --git a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/StartPacketListener.java b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/StartPacketListener.java
index 5ff7ce1c..5f02a0cc 100644
--- a/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/StartPacketListener.java
+++ b/bukkit/src/main/java/com/github/games647/fastlogin/bukkit/listener/protocollib/StartPacketListener.java
@@ -1,6 +1,7 @@
package com.github.games647.fastlogin.bukkit.listener.protocollib;
import com.comphenix.protocol.PacketType;
+import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.events.PacketAdapter;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.events.PacketEvent;
@@ -38,6 +39,11 @@ public class StartPacketListener extends PacketAdapter {
this.plugin = plugin;
}
+ public static void register(FastLoginBukkit plugin, int workerThreads) {
+ ProtocolLibrary.getProtocolManager().getAsynchronousManager()
+ .registerAsyncHandler(new StartPacketListener(plugin)).start(workerThreads);
+ }
+
/**
* C->S : Handshake State=2
* C->S : Login Start