Use getName() instead of commandLabel

This commit is contained in:
cnaude 2018-09-21 20:32:13 -07:00
parent 34f64c7cab
commit 1b3da8e0b9
1 changed files with 1 additions and 1 deletions

View File

@ -122,7 +122,7 @@ public class CommandHandlers implements CommandExecutor {
*/
@Override
public boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {
if (commandLabel.equalsIgnoreCase("irc")) {
if (cmd.getName().equalsIgnoreCase("irc")) {
if (args.length >= 1) {
String subCmd = args[0].toLowerCase();
if (commands.containsKey(subCmd)) {