Rename /msg to /ircm and /r to /ircr.

This commit is contained in:
cnaude 2015-06-25 07:03:53 -07:00
parent 2c4344289e
commit d17b11a6de
3 changed files with 6 additions and 6 deletions

View File

@ -128,7 +128,7 @@ public class CommandHandlers implements CommandExecutor {
return true;
}
}
} else if (commandLabel.equalsIgnoreCase("msg")) {
} else if (commandLabel.equalsIgnoreCase("ircm")) {
if (!sender.hasPermission("irc.smsg")) {
sender.sendMessage(plugin.noPermission);
return true;
@ -141,7 +141,7 @@ public class CommandHandlers implements CommandExecutor {
commands.get("smsg").dispatch(sender, list.toArray(new String[list.size()]));
return true;
}
} else if (commandLabel.equalsIgnoreCase("r")) {
} else if (commandLabel.equalsIgnoreCase("ircr")) {
if (!sender.hasPermission("irc.smsg")) {
sender.sendMessage(plugin.noPermission);
return true;

View File

@ -290,8 +290,8 @@ public class PurpleIRC extends JavaPlugin {
getCommand("irc").setExecutor(commandHandlers);
getCommand("irc").setTabCompleter(ircTabCompleter);
if (overrideMsgCmd) {
getCommand("msg").setExecutor(commandHandlers);
getCommand("r").setExecutor(commandHandlers);
getCommand("ircm").setExecutor(commandHandlers);
getCommand("ircr").setExecutor(commandHandlers);
}
regexGlobber = new RegexGlobber();
tokenizer = new ChatTokenizer(this);

View File

@ -26,10 +26,10 @@ commands:
irc:
description: Various irc commands
usage: /<command> help - List all irc commands available.
msg:
ircm:
description: Shortcut for /irc smsg.
usage: /<command> [player] message
r:
ircr:
description: Shortut for replying to private messages.
usage: /<command> message
permissions: