From 86f2c67a350e6fea9ac7b9a5bdb4ebefecde236b Mon Sep 17 00:00:00 2001 From: sk89q Date: Mon, 18 Oct 2010 16:14:26 -0700 Subject: [PATCH] Fixed a bug that made command checking case-sensitive. /, restored (// still works). --- src/SMWorldEditListener.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/SMWorldEditListener.java b/src/SMWorldEditListener.java index 57ecf9b31..9a7b1f4d3 100644 --- a/src/SMWorldEditListener.java +++ b/src/SMWorldEditListener.java @@ -131,7 +131,12 @@ public class SMWorldEditListener extends PluginListener { WorldEdit worldEdit = WorldEdit.getInstance(); try { - if (worldEdit.getCommands().containsKey(split[0])) { + // Legacy /, command + if (split[0].equals("/,")) { + split[0] = "//"; + } + + if (worldEdit.getCommands().containsKey(split[0].toLowerCase())) { if (canUseCommand(modPlayer, split[0])) { WorldEditPlayer player = new SMWorldEditPlayer(modPlayer); WorldEditSession session = worldEdit.getSession(player);