Correctly unregister protocollib listeners on reload.
This commit is contained in:
parent
cb299d19a1
commit
db0fc55432
@ -70,7 +70,7 @@ public class Chairs extends JavaPlugin {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onDisable() {
|
public void onDisable() {
|
||||||
protocolManager.removePacketListeners(this);
|
protocolManager.getAsynchronousManager().unregisterAsyncHandlers(this);
|
||||||
protocolManager = null;
|
protocolManager = null;
|
||||||
for (String pName : new HashSet<String>(sit.keySet())) {
|
for (String pName : new HashSet<String>(sit.keySet())) {
|
||||||
ejectPlayerOnDisable(Bukkit.getPlayerExact(pName));
|
ejectPlayerOnDisable(Bukkit.getPlayerExact(pName));
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user