From ee38f856e4880419adae26aab74190e520f4433e Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 14 Sep 2017 15:31:25 +1000 Subject: [PATCH] Fixes #738 --- core/src/main/java/com/boydti/fawe/command/FaweParser.java | 2 +- core/src/main/java/com/boydti/fawe/config/Settings.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/boydti/fawe/command/FaweParser.java b/core/src/main/java/com/boydti/fawe/command/FaweParser.java index ff0052e0..87cd7317 100644 --- a/core/src/main/java/com/boydti/fawe/command/FaweParser.java +++ b/core/src/main/java/com/boydti/fawe/command/FaweParser.java @@ -103,7 +103,7 @@ public abstract class FaweParser extends InputParser { } if (newEntry) { newEntry = false; - int index = StringMan.indexOf(command, i + prefix, '[', '&', ','); + int index = StringMan.indexOf(command, Math.max(i, end) + prefix, '[', '&', ','); if (index < 0) index = len; end = index; current = command.substring(i + prefix, end); diff --git a/core/src/main/java/com/boydti/fawe/config/Settings.java b/core/src/main/java/com/boydti/fawe/config/Settings.java index eeb48acb..3e876efc 100644 --- a/core/src/main/java/com/boydti/fawe/config/Settings.java +++ b/core/src/main/java/com/boydti/fawe/config/Settings.java @@ -30,7 +30,7 @@ public class Settings extends Config { public String LANGUAGE = ""; @Comment("Allow the plugin to update") public boolean UPDATE = true; - @Comment("Send anonymous usage statistics to mcstats.org") + @Comment("Send anonymous usage statistics") public boolean METRICS = true; @Comment("FAWE will skip chunks when there's not enough memory available") public boolean PREVENT_CRASHES = false;