From 478c60156c6ba734d4d627d8778676ee5d14e4e8 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Fri, 15 Mar 2013 13:04:06 +0100 Subject: [PATCH] fix broken logic --- src/com/massivecraft/mcore/cmd/MCommand.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/massivecraft/mcore/cmd/MCommand.java b/src/com/massivecraft/mcore/cmd/MCommand.java index 9cc27c6b..51348c4e 100644 --- a/src/com/massivecraft/mcore/cmd/MCommand.java +++ b/src/com/massivecraft/mcore/cmd/MCommand.java @@ -510,7 +510,7 @@ public abstract class MCommand public T argConcatFrom(int idx, ArgReader argReader) { - return this.arg(idx, argReader, null); + return this.argConcatFrom(idx, argReader, null); } public T argConcatFrom(int idx, ArgReader argReader, T defaultNotSet) @@ -531,6 +531,8 @@ public abstract class MCommand public T arg(ArgReader argReader) { - return this.arg(null, argReader, null); + ArgResult result = argReader.read(null, this.sender); + if (result.hasErrors()) this.msg(result.getErrors()); + return result.getResult(); } }