mirror of
https://github.com/cnaude/PurpleIRC-spigot.git
synced 2025-02-13 18:11:25 +01:00
Handle vanilla commands in 1.10
This commit is contained in:
parent
1e60d2b45f
commit
d0bc67ba75
@ -61,13 +61,20 @@ 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")
|
||||
&& plugin.getServer().getVersion().contains("Spigot")
|
||||
if (
|
||||
(plugin.getServer().getVersion().contains("MC: 1.8")
|
||||
&& (plugin.getServer().getVersion().contains("Spigot"))
|
||||
&& plugin.getServer().getPluginCommand(cmd) == null
|
||||
&& !isCommandBookCommand)
|
||||
|| (plugin.getServer().getVersion().contains("MC: 1.9")
|
||||
||
|
||||
(plugin.getServer().getVersion().contains("MC: 1.9")
|
||||
&& plugin.getServer().getPluginCommand(cmd) == null
|
||||
&& !isCommandBookCommand)) {
|
||||
&& !isCommandBookCommand)
|
||||
||
|
||||
(plugin.getServer().getVersion().contains("MC: 1.10")
|
||||
&& 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