diff --git a/Core/src/main/java/com/intellectualcrafters/plot/util/StringMan.java b/Core/src/main/java/com/intellectualcrafters/plot/util/StringMan.java index 7a0d857ae..aba375ec8 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/util/StringMan.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/util/StringMan.java @@ -279,4 +279,13 @@ public class StringMan { } return col; } + + public static boolean contains(String name, char c) { + for (char current : name.toCharArray()) { + if (c == current) { + return true; + } + } + return false; + } } diff --git a/Core/src/main/java/com/intellectualcrafters/plot/util/UUIDHandlerImplementation.java b/Core/src/main/java/com/intellectualcrafters/plot/util/UUIDHandlerImplementation.java index c62d003a4..69b33a59f 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/util/UUIDHandlerImplementation.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/util/UUIDHandlerImplementation.java @@ -232,7 +232,7 @@ public abstract class UUIDHandlerImplementation { return uuid; } // Read from disk OR convert directly to offline UUID - if (Settings.UUID.OFFLINE) { + if (Settings.UUID.OFFLINE && !StringMan.contains(name, ';')) { uuid = this.uuidWrapper.getUUID(name); add(new StringWrapper(name), uuid); return uuid;