Improved command sync

This commit is contained in:
Auxilor
2022-11-06 19:23:11 +00:00
parent 46fd0439a5
commit d081afbd8e

View File

@@ -62,9 +62,9 @@ public abstract class PluginCommand extends HandledCommand implements CommandExe
CommandMap commandMap = getCommandMap(); CommandMap commandMap = getCommandMap();
commandMap.register(this.getPlugin().getName().toLowerCase(), new DelegatedBukkitCommand(this)); commandMap.register(this.getPlugin().getName().toLowerCase(), new DelegatedBukkitCommand(this));
Eco.get().syncCommands();
} }
Eco.get().syncCommands();
} }
/** /**
@@ -77,6 +77,8 @@ public abstract class PluginCommand extends HandledCommand implements CommandExe
if (found != null) { if (found != null) {
found.unregister(commandMap); found.unregister(commandMap);
} }
Eco.get().syncCommands();
} }
/** /**