Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Handle vanilla commands in 1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed Aug 13, 2016
1 parent d4a2bee commit a5bb737
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/main/java/com/cnaude/purpleirc/CommandQueueWatcher.java
Expand Up @@ -61,13 +61,20 @@ private void queueAndSend() {
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());
Expand Down

0 comments on commit a5bb737

Please sign in to comment.