From 2dc46adfa14b609a63d9a0856ba7865af4814e7d Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Mon, 2 Oct 2017 16:38:49 +0300 Subject: [PATCH] Mutes #310 --- .../systems/listeners/PlanCommandPreprocessListener.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Plan/src/main/java/com/djrapitops/plan/systems/listeners/PlanCommandPreprocessListener.java b/Plan/src/main/java/com/djrapitops/plan/systems/listeners/PlanCommandPreprocessListener.java index 36c3fc382..11bc8fd64 100644 --- a/Plan/src/main/java/com/djrapitops/plan/systems/listeners/PlanCommandPreprocessListener.java +++ b/Plan/src/main/java/com/djrapitops/plan/systems/listeners/PlanCommandPreprocessListener.java @@ -52,7 +52,11 @@ public class PlanCommandPreprocessListener implements Listener { if (!logUnknownCommands || combineCommandAliases) { Command command = plugin.getServer().getPluginCommand(commandName); if (command == null) { - command = plugin.getServer().getCommandMap().getCommand(commandName); + try { + command = plugin.getServer().getCommandMap().getCommand(commandName); + } catch (NoSuchMethodError ignored) { + /* Ignored, Bukkit 1.8 has no such method */ + } } if (command == null) { if (!logUnknownCommands) {