mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2024-11-29 05:26:19 +01:00
Vanilla command workaround for MC 1.9.
This commit is contained in:
parent
dfb22860c1
commit
1fe12c06fd
@ -61,10 +61,13 @@ public class CommandQueueWatcher {
|
||||
isCommandBookCommand = plugin.commandBookHook.isCommandBookCommand(cmd);
|
||||
plugin.logDebug("Is this is a CommandBook command? " + Boolean.toString(isCommandBookCommand));
|
||||
}
|
||||
if (plugin.getServer().getVersion().contains("MC: 1.8")
|
||||
if ((plugin.getServer().getVersion().contains("MC: 1.8")
|
||||
&& plugin.getServer().getVersion().contains("Spigot")
|
||||
&& plugin.getServer().getPluginCommand(cmd) == null
|
||||
&& !isCommandBookCommand) {
|
||||
&& !isCommandBookCommand)
|
||||
|| (plugin.getServer().getVersion().contains("MC: 1.9")
|
||||
&& plugin.getServer().getPluginCommand(cmd) == null
|
||||
&& !isCommandBookCommand)) {
|
||||
plugin.logDebug("Dispatching command as ConsoleSender: " + ircCommand.getGameCommand());
|
||||
|
||||
plugin.getServer().dispatchCommand(ircCommand.getIRCConsoleCommandSender(), ircCommand.getGameCommand());
|
||||
|
Loading…
Reference in New Issue
Block a user