Check null for plugin commands
This commit is contained in:
parent
a388981194
commit
86281dd769
1 changed files with 4 additions and 1 deletions
|
|
@ -99,7 +99,10 @@ public class PluginManager {
|
|||
return;
|
||||
}
|
||||
|
||||
plugin.getDescription().getCommands().forEach((cmd, data) -> {
|
||||
Map<String, Map<String, Object>> commands = plugin.getDescription().getCommands();
|
||||
if (commands == null) return; // Older versions
|
||||
|
||||
commands.forEach((cmd, data) -> {
|
||||
map.remove(cmd);
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue