From 7d64fce5db7cc5eeca675cbf97153c5f7dcd6a42 Mon Sep 17 00:00:00 2001 From: graywolf336 Date: Sat, 8 Mar 2014 23:59:23 -0600 Subject: [PATCH] Add some debugging code to try and work out #19 --- .../java/com/graywolf336/jail/listeners/PlayerListener.java | 2 ++ src/main/java/com/graywolf336/jail/steps/CellCreationSteps.java | 1 + src/main/java/com/graywolf336/jail/steps/JailCreationSteps.java | 1 + 3 files changed, 4 insertions(+) diff --git a/src/main/java/com/graywolf336/jail/listeners/PlayerListener.java b/src/main/java/com/graywolf336/jail/listeners/PlayerListener.java index 51f4455..3199717 100644 --- a/src/main/java/com/graywolf336/jail/listeners/PlayerListener.java +++ b/src/main/java/com/graywolf336/jail/listeners/PlayerListener.java @@ -45,8 +45,10 @@ public class PlayerListener implements Listener { if(p.getItemInHand().isSimilar(Util.getWand())) { if(jm.isCreatingSomething(p.getName())) { if(jm.isCreatingAJail(p.getName())) { + pl.debug("Stepping into creating a jail."); jm.getJailCreationSteps().step(jm, p, jm.getJailCreationPlayer(p.getName()), loc); }else if(jm.isCreatingACell(p.getName())) { + pl.debug("Stepping into creating a cell."); jm.getCellCreationSteps().step(jm, p, jm.getCellCreationPlayer(p.getName()), loc); } diff --git a/src/main/java/com/graywolf336/jail/steps/CellCreationSteps.java b/src/main/java/com/graywolf336/jail/steps/CellCreationSteps.java index 9a25173..ad99e90 100644 --- a/src/main/java/com/graywolf336/jail/steps/CellCreationSteps.java +++ b/src/main/java/com/graywolf336/jail/steps/CellCreationSteps.java @@ -51,6 +51,7 @@ public class CellCreationSteps { * @param location The location, null if none, being set. */ public void step(JailManager jm, Player player, CreationPlayer cp, Location location) { + jm.getPlugin().debug("Stepping into step #" + cp.getStep()); switch(cp.getStep()) { case 1: firstStep(jm, cp, player); diff --git a/src/main/java/com/graywolf336/jail/steps/JailCreationSteps.java b/src/main/java/com/graywolf336/jail/steps/JailCreationSteps.java index 3095473..616ff4b 100644 --- a/src/main/java/com/graywolf336/jail/steps/JailCreationSteps.java +++ b/src/main/java/com/graywolf336/jail/steps/JailCreationSteps.java @@ -47,6 +47,7 @@ public class JailCreationSteps { * @param location The location, null if none, being set. */ public void step(JailManager jm, Player player, CreationPlayer cp, Location location) { + jm.getPlugin().debug("Stepping into step #" + cp.getStep()); switch(cp.getStep()) { case 1: firstStep(cp, player, location);