diff --git a/src/de/craftinc/gates/GatesManager.java b/src/de/craftinc/gates/GatesManager.java index eeac1bf..5af5228 100644 --- a/src/de/craftinc/gates/GatesManager.java +++ b/src/de/craftinc/gates/GatesManager.java @@ -166,8 +166,8 @@ public class GatesManager private void addGateByLocations(Gate g) { - for (Location c : g.getGateBlockLocations()) { - SimpleLocation sl = new SimpleLocation(c); + for (Location l : g.getGateBlockLocations()) { + SimpleLocation sl = new SimpleLocation(l); gatesByLocation.put(sl, g); } } diff --git a/src/de/craftinc/gates/commands/CommandCreate.java b/src/de/craftinc/gates/commands/CommandCreate.java index 51d0f73..87e0192 100644 --- a/src/de/craftinc/gates/commands/CommandCreate.java +++ b/src/de/craftinc/gates/commands/CommandCreate.java @@ -37,7 +37,7 @@ public class CommandCreate extends BaseLocationCommand GatesManager gatesManager = Plugin.getPlugin().getGatesManager(); if (gatesManager.gateExists(id)) { - sendMessage(ChatColor.RED + "Creating the gate failed!" + "A gate with the supplied id already exists!"); + sendMessage(ChatColor.RED + "Creating the gate failed! " + "A gate with the supplied id already exists!"); return; }