mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 22:26:46 +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)
|
||||
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());
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user