mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-25 11:35:36 +01:00
Rename /msg to /ircm and /r to /ircr.
This commit is contained in:
parent
2c4344289e
commit
d17b11a6de
@ -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;
|
||||
|
@ -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);
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user