New command syntax: /command <param> [<optional>]

This commit is contained in:
Sebastian Kaspari 2010-03-09 22:00:04 +01:00
parent dee13c82bf
commit 3abf251c36
3 changed files with 3 additions and 4 deletions

View File

@ -100,8 +100,7 @@ public class CommandParser
errorMessage.setColor(Message.COLOR_RED);
channel.addMessage(errorMessage);
Message usageMessage = new Message("Usage of " + type + ": " + command.getUsage());
//usageMessage.setColor(Message.COLOR_RED);
Message usageMessage = new Message("Syntax: " + command.getUsage());
channel.addMessage(usageMessage);
Intent intent = new Intent(Broadcast.CHANNEL_MESSAGE);

View File

@ -52,6 +52,6 @@ public class JoinCommand extends BaseCommand
@Override
public String getUsage()
{
return "/join channel [key]";
return "/join <channel> [<key>]";
}
}

View File

@ -50,6 +50,6 @@ public class NickCommand extends BaseCommand
@Override
public String getUsage()
{
return "/nick nickname";
return "/nick <nickname>";
}
}