diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/StringWrapper.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/StringWrapper.java index d36e6a7b7..0a29258cb 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/StringWrapper.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/object/StringWrapper.java @@ -54,7 +54,7 @@ public class StringWrapper { return false; } final StringWrapper other = (StringWrapper) obj; - return other.value.toLowerCase().equals(this.value.toLowerCase()); + return other.value.equals(this.value); } /** @@ -77,6 +77,6 @@ public class StringWrapper { if (this.value == null) { return 0; } - return this.value.toLowerCase().hashCode(); + return this.value.hashCode(); } } diff --git a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ReflectionUtils.java b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ReflectionUtils.java index 3a69b4f53..e6229b4b8 100644 --- a/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ReflectionUtils.java +++ b/PlotSquared/src/main/java/com/intellectualcrafters/plot/util/ReflectionUtils.java @@ -94,7 +94,7 @@ public class ReflectionUtils { * @return RefClass object * @throws RuntimeException if no class found */ - public static RefClass getRefClass(final String... classes) { + public static RefClass getRefClass(final String... classes) throws RuntimeException { for (String className : classes) { try { className = className.replace("{cb}", preClassB).replace("{nms}", preClassM).replace("{nm}", "net.minecraft");