Remove debug on swing

This commit is contained in:
nossr50 2020-02-10 13:18:42 -08:00
parent b34f0d62d6
commit 63de093ebb

View File

@ -901,17 +901,17 @@ public class PlayerListener implements Listener {
}
}
@EventHandler(priority = EventPriority.LOWEST)
public void onDebugPlayerInteract(PlayerInteractEvent event) {
if(pluginRef.getUserManager().getPlayer(event.getPlayer()) != null) {
McMMOPlayer mcMMOPlayer = pluginRef.getUserManager().getPlayer(event.getPlayer());
if(mcMMOPlayer.isDebugMode()) {
switch(event.getAction()) {
case LEFT_CLICK_AIR:
case LEFT_CLICK_BLOCK:
pluginRef.getNbtManager().debugNBTInMainHandItem(event.getPlayer());
}
}
}
}
// @EventHandler(priority = EventPriority.LOWEST)
// public void onDebugPlayerInteract(PlayerInteractEvent event) {
// if(pluginRef.getUserManager().getPlayer(event.getPlayer()) != null) {
// McMMOPlayer mcMMOPlayer = pluginRef.getUserManager().getPlayer(event.getPlayer());
// if(mcMMOPlayer.isDebugMode()) {
// switch(event.getAction()) {
// case LEFT_CLICK_AIR:
// case LEFT_CLICK_BLOCK:
// pluginRef.getNbtManager().debugNBTInMainHandItem(event.getPlayer());
// }
// }
// }
// }
}