From 575b0035df224af7916511836d4c6787d5729936 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 16 Nov 2021 12:48:09 +0000 Subject: [PATCH] Should be equals in checking if valid prefix when not shorter and with no arguments --- .../core/extension/factory/parser/RichParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/RichParser.java b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/RichParser.java index e82580dfe..76ef9c463 100644 --- a/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/RichParser.java +++ b/worldedit-core/src/main/java/com/fastasyncworldedit/core/extension/factory/parser/RichParser.java @@ -46,9 +46,9 @@ public abstract class RichParser extends InputParser implements AliasedPar } int i = other.indexOf('['); if (i == -1) { - return other.startsWith(prefix); + return other.equals(prefix); } - return other.substring(0, i).equalsIgnoreCase(prefix); + return other.substring(0, i).equals(prefix); }; }