Add some debugging code to try and work out #19
This commit is contained in:
parent
74812114c6
commit
7d64fce5db
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user