mirror of
https://github.com/aikar/commands.git
synced 2026-05-31 06:11:55 +00:00
Fix NPE for plugins without special log prefix (#294)
This commit is contained in:
@@ -92,7 +92,8 @@ public class BukkitCommandManager extends CommandManager<
|
||||
@SuppressWarnings("JavaReflectionMemberAccess")
|
||||
public BukkitCommandManager(Plugin plugin) {
|
||||
this.plugin = plugin;
|
||||
this.logger = Logger.getLogger(this.plugin.getDescription().getPrefix());
|
||||
String prefix = this.plugin.getDescription().getPrefix();
|
||||
this.logger = Logger.getLogger(prefix != null ? prefix : this.plugin.getName());
|
||||
this.timingManager = TimingManager.of(plugin);
|
||||
this.commandTiming = this.timingManager.of("Commands");
|
||||
this.commandMap = hookCommandMap();
|
||||
|
||||
Reference in New Issue
Block a user