From 2c70489885ad735100aa878501ccd7a7b6383f82 Mon Sep 17 00:00:00 2001 From: Olof Larsson Date: Thu, 25 Apr 2013 13:31:15 +0200 Subject: [PATCH] There we go --- src/com/massivecraft/mcore/cmd/MCommand.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/com/massivecraft/mcore/cmd/MCommand.java b/src/com/massivecraft/mcore/cmd/MCommand.java index 05b1e7f3..5df689f3 100644 --- a/src/com/massivecraft/mcore/cmd/MCommand.java +++ b/src/com/massivecraft/mcore/cmd/MCommand.java @@ -363,8 +363,10 @@ public abstract class MCommand ret.append('/'); boolean first = true; - for (MCommand mc : commands) + Iterator iter = commands.iterator(); + while(iter.hasNext()) { + MCommand mc = iter.next(); if (sender != null && !mc.requirementsAreMet(sender, false)) { ret.append(commandBadColor); @@ -382,12 +384,15 @@ public abstract class MCommand { ret.append(Txt.implode(mc.aliases, ",")); } - ret.append(' '); + + if (iter.hasNext()) + { + ret.append(' '); + } + first = false; } - ret.append(Txt.implode(this.aliases, ",")); - List args = new ArrayList(); for (String requiredArg : this.requiredArgs)