There we go

This commit is contained in:
Olof Larsson 2013-04-25 13:31:15 +02:00
parent 69c78d68a1
commit 2c70489885

View File

@ -363,8 +363,10 @@ public abstract class MCommand
ret.append('/'); ret.append('/');
boolean first = true; boolean first = true;
for (MCommand mc : commands) Iterator<MCommand> iter = commands.iterator();
while(iter.hasNext())
{ {
MCommand mc = iter.next();
if (sender != null && !mc.requirementsAreMet(sender, false)) if (sender != null && !mc.requirementsAreMet(sender, false))
{ {
ret.append(commandBadColor); ret.append(commandBadColor);
@ -382,12 +384,15 @@ public abstract class MCommand
{ {
ret.append(Txt.implode(mc.aliases, ",")); ret.append(Txt.implode(mc.aliases, ","));
} }
ret.append(' ');
if (iter.hasNext())
{
ret.append(' ');
}
first = false; first = false;
} }
ret.append(Txt.implode(this.aliases, ","));
List<String> args = new ArrayList<String>(); List<String> args = new ArrayList<String>();
for (String requiredArg : this.requiredArgs) for (String requiredArg : this.requiredArgs)