diff --git a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/build/BuildData.java b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/build/BuildData.java index 42b7862bd..7e2974f67 100644 --- a/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/build/BuildData.java +++ b/Plugins/Nautilus.Game.Arcade/src/nautilus/game/arcade/game/games/build/BuildData.java @@ -7,7 +7,6 @@ import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; -import org.bukkit.Bukkit; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.Sound; @@ -29,7 +28,6 @@ import com.java.sk89q.jnbt.Tag; import mineplex.core.common.block.schematic.Schematic; import mineplex.core.common.block.schematic.UtilSchematic; -import mineplex.core.common.util.C; import mineplex.core.common.util.F; import mineplex.core.common.util.MapUtil; import mineplex.core.common.util.NautHashMap; @@ -259,46 +257,26 @@ public class BuildData return inBuildArea(block.getLocation().toVector()); } - private String getBooleanForDebug(boolean bool) { - bool = !bool; - - if (bool) { - return C.cGreen + "true"; - } - return C.cRed + "false"; - } - public boolean inBuildArea(Vector vec) { - Bukkit.broadcastMessage(C.cGray + "Checking if vector " + C.cYellow + vec + C.cGray + " is inside build area for " + C.cYellow + Player.getName()); - Bukkit.broadcastMessage(C.cGray + "Bottom left corner: " + C.cYellow + CornerBottomLeft.toVector().toString()); - Bukkit.broadcastMessage((C.cGray + "Top right corner: " + C.cYellow + CornerTopRight.toVector().toString())); - - Bukkit.broadcastMessage(C.cGray + "Checking relative to BL x: " + getBooleanForDebug(vec.getBlockX() <= CornerBottomLeft.getBlockX())); if (vec.getBlockX() < CornerBottomLeft.getBlockX()) return false; - Bukkit.broadcastMessage(C.cGray + "Checking relative to BL y: " + getBooleanForDebug(vec.getBlockY() < CornerBottomLeft.getBlockY())); if (vec.getBlockY() < CornerBottomLeft.getBlockY()) return false; - Bukkit.broadcastMessage(C.cGray + "Checking relative to BL z: " + getBooleanForDebug(vec.getBlockZ() < CornerBottomLeft.getBlockZ())); if (vec.getBlockZ() < CornerBottomLeft.getBlockZ()) return false; - Bukkit.broadcastMessage(C.cGray + "Checking relative to TR x: " + getBooleanForDebug(vec.getBlockX() > CornerTopRight.getBlockX())); if (vec.getBlockX() > CornerTopRight.getBlockX()) return false; - Bukkit.broadcastMessage(C.cGray + "Checking relative to TR y: " + getBooleanForDebug(vec.getBlockY() > CornerTopRight.getBlockY())); if (vec.getBlockY() > CornerTopRight.getBlockY()) return false; - Bukkit.broadcastMessage(C.cGray + "Checking relative to TR z: " + getBooleanForDebug(vec.getBlockZ() > CornerTopRight.getBlockZ())); if (vec.getBlockZ() > CornerTopRight.getBlockZ()) return false; - Bukkit.broadcastMessage(C.cGreen + "Good to go!"); return true; }