Terminated PacketEvents correctly on plugin disable
This commit is contained in:
parent
08d69f6848
commit
40fc046c30
1 changed files with 1 additions and 0 deletions
|
@ -174,6 +174,7 @@ public class ZNpcsPlus extends JavaPlugin {
|
||||||
if (!enabled) return;
|
if (!enabled) return;
|
||||||
NpcApiProvider.unregister();
|
NpcApiProvider.unregister();
|
||||||
for (Runnable runnable : shutdownTasks) runnable.run();
|
for (Runnable runnable : shutdownTasks) runnable.run();
|
||||||
|
PacketEvents.getAPI().terminate();
|
||||||
}
|
}
|
||||||
|
|
||||||
private PacketFactory setupPacketFactory(TaskScheduler scheduler, MetadataFactory metadataFactory, EntityPropertyRegistryImpl propertyRegistry) {
|
private PacketFactory setupPacketFactory(TaskScheduler scheduler, MetadataFactory metadataFactory, EntityPropertyRegistryImpl propertyRegistry) {
|
||||||
|
|
Loading…
Reference in a new issue