Permalink
Browse files

Fix server command error for MC versions prior to 1.8.8

  • Loading branch information...
PseudoKnight committed Oct 25, 2017
1 parent 09845d3 commit 7b3d69143eb1158d409386c7afe721b3472b835e
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/main/java/com/laytonsmith/commandhelper/CommandHelperServerListener.java
@@ -41,8 +41,12 @@ public void onServerCommand(ServerCommandEvent event){
BukkitMiscEvents.BukkitMCServerCommandEvent cce = new BukkitMiscEvents.BukkitMCServerCommandEvent(event, sender);
EventUtils.TriggerListener(Driver.SERVER_COMMAND, "server_command", cce);
if(event.isCancelled()) {
return;
try {
if (event.isCancelled()) {
return;
}
} catch(NoSuchMethodError ex) {
// not cancellable before 1.8.8
}
boolean match = false;

0 comments on commit 7b3d691

Please sign in to comment.