Removed debug prints.
This commit is contained in:
parent
e49c5c0acb
commit
6373f98894
@ -31,12 +31,8 @@ public class CommandSetExit extends BaseCommand
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
System.out.println(gate.getExit());
|
|
||||||
|
|
||||||
gate.setExit(player.getLocation());
|
gate.setExit(player.getLocation());
|
||||||
sendMessage(ChatColor.GREEN + "The exit of gate '" + gate.getId() + "' is now where you stand.");
|
sendMessage(ChatColor.GREEN + "The exit of gate '" + gate.getId() + "' is now where you stand.");
|
||||||
|
|
||||||
System.out.println(gate.getExit());
|
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
sendMessage(ChatColor.RED + "Setting the exit for the gate failed! See server log for more information");
|
sendMessage(ChatColor.RED + "Setting the exit for the gate failed! See server log for more information");
|
||||||
|
@ -76,10 +76,7 @@ public class PluginPortalListener implements Listener
|
|||||||
eventLocation.setY(closestGate.getLocation().getY());
|
eventLocation.setY(closestGate.getLocation().getY());
|
||||||
|
|
||||||
double distToClosestGate = closestGate.getLocation().distance(eventLocation);
|
double distToClosestGate = closestGate.getLocation().distance(eventLocation);
|
||||||
|
|
||||||
Plugin.log("closest gate: " + closestGate.getId());
|
|
||||||
Plugin.log("distance: " + distToClosestGate);
|
|
||||||
|
|
||||||
if (distToClosestGate < 2.0) {
|
if (distToClosestGate < 2.0) {
|
||||||
this.currentGateAtEvent.put(player, closestGate);
|
this.currentGateAtEvent.put(player, closestGate);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user