Let's add some debugging to the clicking of the clicked block.

This commit is contained in:
graywolf336 2013-12-11 17:14:16 -06:00
parent 2254efe08d
commit b706534b87

View File

@ -27,6 +27,8 @@ public class PlayerListener implements Listener {
Location loc = event.getClickedBlock() == null ? p.getLocation() : event.getClickedBlock().getLocation(); Location loc = event.getClickedBlock() == null ? p.getLocation() : event.getClickedBlock().getLocation();
JailManager jm = pl.getJailManager(); JailManager jm = pl.getJailManager();
p.sendMessage("The material of the clicked block is " + (event.getClickedBlock() == null ? "nothing." : event.getClickedBlock().getType().toString()));
if(p.getItemInHand().isSimilar(Util.getWand())) { if(p.getItemInHand().isSimilar(Util.getWand())) {
if(jm.isCreatingSomething(p.getName())) { if(jm.isCreatingSomething(p.getName())) {
if(jm.isCreatingAJail(p.getName())) { if(jm.isCreatingAJail(p.getName())) {