From eff7dac690b34980b8ca4561646604be7c2eac71 Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 18 Feb 2011 20:54:01 -0800 Subject: [PATCH] Fixed issue with CommandContext breaking arguments with negative numbers. --- src/com/sk89q/minecraft/util/commands/CommandContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/sk89q/minecraft/util/commands/CommandContext.java b/src/com/sk89q/minecraft/util/commands/CommandContext.java index 9f57a8b11..d2740febd 100644 --- a/src/com/sk89q/minecraft/util/commands/CommandContext.java +++ b/src/com/sk89q/minecraft/util/commands/CommandContext.java @@ -33,7 +33,7 @@ public class CommandContext { int i = 1; for (; i < args.length; i++) { - if (args[i].charAt(0) == '-') { + if (args[i].charAt(0) == '-' && args[i].matches("^-[a-zA-Z]+$")) { for (int k = 1; k < args[i].length(); k++) { flags.add(args[i].charAt(k)); }