From 76bef40b0b29ba2306362dea474046e0420f65c5 Mon Sep 17 00:00:00 2001 From: alisolarflare Date: Sat, 5 Nov 2016 09:43:16 -0400 Subject: [PATCH] added debug --- .../PlotChangeListener.java | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/src/alisolarflare/creativeboundaries/PlotChangeListener.java b/src/alisolarflare/creativeboundaries/PlotChangeListener.java index c230356..7ce331a 100644 --- a/src/alisolarflare/creativeboundaries/PlotChangeListener.java +++ b/src/alisolarflare/creativeboundaries/PlotChangeListener.java @@ -24,14 +24,20 @@ public class PlotChangeListener implements Listener{ } @EventHandler public void onPlayerPlotChange(PlayerChangePlotEvent plotEvent){ - if (dickmode == false) - return; - if (plotEvent.getPlayer().getGameMode() != GameMode.CREATIVE) - return; - if (!(cbCreatives.contains(plotEvent.getPlayer()))) - return; - Player player = plotEvent.getPlayer(); + if (dickmode == false){ + debug(player, "dickies"); + return; + } + if (plotEvent.getPlayer().getGameMode() != GameMode.CREATIVE){ + debug(player, "cray cray"); + return; + } + if (!(cbCreatives.contains(plotEvent.getPlayer()))){ + debug(player, "racism"); + return; + } + Resident currentResident = new Resident(player.getName()); Town town; try {