diff --git a/src/de/craftinc/gates/commands/CommandSetExit.java b/src/de/craftinc/gates/commands/CommandSetExit.java index f5406ea..abef6b4 100644 --- a/src/de/craftinc/gates/commands/CommandSetExit.java +++ b/src/de/craftinc/gates/commands/CommandSetExit.java @@ -31,12 +31,8 @@ public class CommandSetExit extends BaseCommand { try { - System.out.println(gate.getExit()); - gate.setExit(player.getLocation()); sendMessage(ChatColor.GREEN + "The exit of gate '" + gate.getId() + "' is now where you stand."); - - System.out.println(gate.getExit()); } catch (Exception e) { sendMessage(ChatColor.RED + "Setting the exit for the gate failed! See server log for more information"); diff --git a/src/de/craftinc/gates/listeners/PluginPortalListener.java b/src/de/craftinc/gates/listeners/PluginPortalListener.java index c34e753..74aad82 100644 --- a/src/de/craftinc/gates/listeners/PluginPortalListener.java +++ b/src/de/craftinc/gates/listeners/PluginPortalListener.java @@ -76,10 +76,7 @@ public class PluginPortalListener implements Listener eventLocation.setY(closestGate.getLocation().getY()); double distToClosestGate = closestGate.getLocation().distance(eventLocation); - - Plugin.log("closest gate: " + closestGate.getId()); - Plugin.log("distance: " + distToClosestGate); - + if (distToClosestGate < 2.0) { this.currentGateAtEvent.put(player, closestGate); return;