This commit is contained in:
Rsl1122 2017-10-02 16:38:49 +03:00
parent 66f879278b
commit 2dc46adfa1

View File

@ -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) {