Correctly unregister protocollib listeners on reload.

This commit is contained in:
Shevchik 2013-09-02 20:56:28 +04:00
parent cb299d19a1
commit db0fc55432
2 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ public class Chairs extends JavaPlugin {
@Override
public void onDisable() {
protocolManager.removePacketListeners(this);
protocolManager.getAsynchronousManager().unregisterAsyncHandlers(this);
protocolManager = null;
for (String pName : new HashSet<String>(sit.keySet())) {
ejectPlayerOnDisable(Bukkit.getPlayerExact(pName));

Binary file not shown.