mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-29 05:26:19 +01:00
Fix command-notify ignore.
This commit is contained in:
parent
7b797b2ef8
commit
5b71aba092
@ -84,12 +84,15 @@ public class GamePlayerCommandPreprocessingListener implements Listener {
|
|||||||
cmd = msg;
|
cmd = msg;
|
||||||
}
|
}
|
||||||
cmd = cmd.substring(0);
|
cmd = cmd.substring(0);
|
||||||
|
boolean ignoreMe = false;
|
||||||
for (String s : ircBot.channelCmdNotifyIgnore) {
|
for (String s : ircBot.channelCmdNotifyIgnore) {
|
||||||
if (s.equalsIgnoreCase(cmd)) {
|
if (s.equalsIgnoreCase(cmd)) {
|
||||||
ircBot.commandNotify(event.getPlayer(), cmd, params);
|
ignoreMe = true;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!ignoreMe) {
|
||||||
|
ircBot.commandNotify(event.getPlayer(), cmd, params);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user