From 9abc2c8fe8b48ffe377ed48b4b0f2642a74eaed6 Mon Sep 17 00:00:00 2001 From: funkystudios Date: Sat, 25 Jan 2014 19:30:16 -0600 Subject: [PATCH] Allow for spacing in COMMAND[] Action --- .../net/gravitydevelopment/anticheat/util/Group.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/gravitydevelopment/anticheat/util/Group.java b/src/main/java/net/gravitydevelopment/anticheat/util/Group.java index 7f36714..4c8fcc4 100644 --- a/src/main/java/net/gravitydevelopment/anticheat/util/Group.java +++ b/src/main/java/net/gravitydevelopment/anticheat/util/Group.java @@ -64,12 +64,11 @@ public class Group { public static Group load(String string) { try { - if (string.split(":").length == 4) { - string = Utilities.removeWhitespace(string); - String name = string.split(":")[0]; - int level = Integer.parseInt(string.split(":")[1]); - String color = string.split(":")[2]; - List actions = Arrays.asList(string.split(":")[3].split(",")); + if (string.split(" : ").length == 4) { + String name = string.split(" : ")[0]; + int level = Integer.parseInt(string.split(" : ")[1]); + String color = string.split(" : ")[2]; + List actions = Arrays.asList(string.split(" : ")[3].split(",")); return new Group(name, level, color, actions); } else { throw new Exception();