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

Commit

Permalink
Workaround for issue #97
Browse files Browse the repository at this point in the history
  • Loading branch information
cnaude committed Dec 25, 2014
1 parent ca0d324 commit 9b76679
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/cnaude/purpleirc/CommandQueueWatcher.java
Expand Up @@ -52,7 +52,11 @@ public void run() {
private void queueAndSend() {
IRCCommand ircCommand = queue.poll();
if (ircCommand != null) {
plugin.getServer().dispatchCommand(ircCommand.getIRCCommandSender(), ircCommand.getGameCommand());
if (plugin.getServer().getVersion().contains("MC: 1.8")) {
plugin.getServer().dispatchCommand(plugin.getServer().getConsoleSender(), ircCommand.getGameCommand());
} else {
plugin.getServer().dispatchCommand(ircCommand.getIRCCommandSender(), ircCommand.getGameCommand());
}
plugin.getServer().getPluginManager().callEvent(new IRCCommandEvent(ircCommand));
}
}
Expand Down

0 comments on commit 9b76679

Please sign in to comment.