Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Rename /msg to /ircm and /r to /ircr.
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed Jun 25, 2015
1 parent 1f81ed9 commit 6f9ac85
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/cnaude/purpleirc/CommandHandlers.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String commandLabel,
return true;
}
}
} else if (commandLabel.equalsIgnoreCase("msg")) {
} else if (commandLabel.equalsIgnoreCase("ircm")) {
if (!sender.hasPermission("irc.smsg")) {
sender.sendMessage(plugin.noPermission);
return true;
Expand All @@ -141,7 +141,7 @@ public boolean onCommand(CommandSender sender, Command cmd, String commandLabel,
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;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/cnaude/purpleirc/PurpleIRC.java
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ public void onEnable() {
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);
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6f9ac85

Please sign in to comment.