Fixed typos.

This commit is contained in:
Tobias Ottenweller 2013-05-19 10:39:23 +02:00
parent a9be1eaa51
commit 6bd53a3fe6
2 changed files with 3 additions and 3 deletions

View File

@ -166,8 +166,8 @@ public class GatesManager
private void addGateByLocations(Gate g) private void addGateByLocations(Gate g)
{ {
for (Location c : g.getGateBlockLocations()) { for (Location l : g.getGateBlockLocations()) {
SimpleLocation sl = new SimpleLocation(c); SimpleLocation sl = new SimpleLocation(l);
gatesByLocation.put(sl, g); gatesByLocation.put(sl, g);
} }
} }

View File

@ -37,7 +37,7 @@ public class CommandCreate extends BaseLocationCommand
GatesManager gatesManager = Plugin.getPlugin().getGatesManager(); GatesManager gatesManager = Plugin.getPlugin().getGatesManager();
if (gatesManager.gateExists(id)) { 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; return;
} }