Improved command sync
This commit is contained in:
@@ -62,9 +62,9 @@ public abstract class PluginCommand extends HandledCommand implements CommandExe
|
||||
CommandMap commandMap = getCommandMap();
|
||||
|
||||
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) {
|
||||
found.unregister(commandMap);
|
||||
}
|
||||
|
||||
Eco.get().syncCommands();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user