mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-09-15 09:15:35 +02:00
Trying to reduce reliance on Bukkit
This commit is contained in:
@@ -27,6 +27,9 @@ public class CommandManager<T extends CommandCaller> {
|
||||
}
|
||||
|
||||
final public void addCommand(final Command<T> command) {
|
||||
if (command.getCommand() == null) {
|
||||
command.create();
|
||||
}
|
||||
this.commands.put(command.getCommand().toLowerCase(), command);
|
||||
for (String alias : command.getAliases()) {
|
||||
this.commands.put(alias.toLowerCase(), command);
|
||||
|
Reference in New Issue
Block a user