Fix unregister ProtocolLib

This commit is contained in:
Nathan committed 2022-08-17 14:49:38 +02:00
1 parent feb46399da
commit ace180976d
1 file changed
+1 -1
@@ -187,7 +187,7 @@ public class FastLoginBukkit extends JavaPlugin implements PlatformPlugin<Comman
}
}
if (isPluginInstalled("ProtocolLib")) {
if (getServer().getPluginManager().isPluginEnabled("ProtocolLib")) {
ProtocolLibrary.getProtocolManager().getAsynchronousManager().unregisterAsyncHandlers(this);
}
}