mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-25 18:47:50 +01:00
Mutes #310
This commit is contained in:
parent
66f879278b
commit
2dc46adfa1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user