mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 06:36:45 +01:00
Remove debug on swing
This commit is contained in:
parent
b34f0d62d6
commit
63de093ebb
@ -901,17 +901,17 @@ public class PlayerListener implements Listener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(priority = EventPriority.LOWEST)
|
// @EventHandler(priority = EventPriority.LOWEST)
|
||||||
public void onDebugPlayerInteract(PlayerInteractEvent event) {
|
// public void onDebugPlayerInteract(PlayerInteractEvent event) {
|
||||||
if(pluginRef.getUserManager().getPlayer(event.getPlayer()) != null) {
|
// if(pluginRef.getUserManager().getPlayer(event.getPlayer()) != null) {
|
||||||
McMMOPlayer mcMMOPlayer = pluginRef.getUserManager().getPlayer(event.getPlayer());
|
// McMMOPlayer mcMMOPlayer = pluginRef.getUserManager().getPlayer(event.getPlayer());
|
||||||
if(mcMMOPlayer.isDebugMode()) {
|
// if(mcMMOPlayer.isDebugMode()) {
|
||||||
switch(event.getAction()) {
|
// switch(event.getAction()) {
|
||||||
case LEFT_CLICK_AIR:
|
// case LEFT_CLICK_AIR:
|
||||||
case LEFT_CLICK_BLOCK:
|
// case LEFT_CLICK_BLOCK:
|
||||||
pluginRef.getNbtManager().debugNBTInMainHandItem(event.getPlayer());
|
// pluginRef.getNbtManager().debugNBTInMainHandItem(event.getPlayer());
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user