diff --git a/src/de/craftinc/gates/Gate.java b/src/de/craftinc/gates/Gate.java index e96c40b..6f2d069 100644 --- a/src/de/craftinc/gates/Gate.java +++ b/src/de/craftinc/gates/Gate.java @@ -43,9 +43,9 @@ public class Gate implements ConfigurationSerializable * You should never create two gates with the same 'id'. Also see 'setId(String id)'. * @param id This parameter must not be 'null'. An exception will be thrown otherwise! */ - public Gate(String id) + public Gate(final String id) { - setId(id); + setId(id.toLowerCase()); } diff --git a/src/de/craftinc/gates/GatesManager.java b/src/de/craftinc/gates/GatesManager.java index e3fb97a..a7adac7 100644 --- a/src/de/craftinc/gates/GatesManager.java +++ b/src/de/craftinc/gates/GatesManager.java @@ -56,7 +56,7 @@ public class GatesManager public Gate getGateWithId(final String id) { - return gatesById.get(id); + return gatesById.get(id.toLowerCase()); } @@ -484,7 +484,7 @@ public class GatesManager public boolean gateExists(final String id) { - return gatesById.containsKey(id); + return gatesById.containsKey(id.toLowerCase()); }