Add CustomMobs plugin configuration and update command logic
Introduced a new configuration file for the CustomMobs plugin, specifying its details and commands. Updated the CommandManager to use "custommobs" instead of "fish" and added an alias "cm" for command execution.
This commit is contained in:
1 parent
2127933b0a
commit
bfb8c122da
2 files changed
+16
-1
No files matched your search
@@ -20,7 +20,7 @@ public class CommandManager implements CommandExecutor, TabExecutor {
|
||||
private final List<SubCommand> subCommands;
|
||||
|
||||
public CommandManager(Main main) {
|
||||
PluginCommand command = main.getCommand("fish");
|
||||
PluginCommand command = main.getCommand("custommobs");
|
||||
if (command == null) {
|
||||
subCommands = null;
|
||||
log.error("Unable to find transfer command.");
|
||||
@@ -28,6 +28,7 @@ public class CommandManager implements CommandExecutor, TabExecutor {
|
||||
}
|
||||
command.setExecutor(this);
|
||||
command.setTabCompleter(this);
|
||||
command.setAliases(List.of("cm"));
|
||||
|
||||
subCommands = Arrays.asList(
|
||||
new Spawn(main)
|
||||
|
||||
Reference in new issue
Block a user