public final class CommandMapUtil extends Object
CommandMap instance.| Modifier and Type | Method and Description |
|---|---|
static <T extends org.bukkit.command.CommandExecutor> |
registerCommand(org.bukkit.plugin.Plugin plugin,
T command,
String... aliases)
Registers a CommandExecutor with the server
|
static <T extends org.bukkit.command.CommandExecutor> |
registerCommand(org.bukkit.plugin.Plugin plugin,
T command,
String permission,
String permissionMessage,
String description,
String... aliases)
Registers a CommandExecutor with the server
|
static <T extends org.bukkit.command.CommandExecutor> |
unregisterCommand(T command)
Unregisters a CommandExecutor with the server
|
@Nonnull public static <T extends org.bukkit.command.CommandExecutor> T registerCommand(@Nonnull org.bukkit.plugin.Plugin plugin, @Nonnull T command, @Nonnull String... aliases)
T - the command executor class typeplugin - the plugin instancecommand - the command instancealiases - the command aliases@Nonnull public static <T extends org.bukkit.command.CommandExecutor> T registerCommand(@Nonnull org.bukkit.plugin.Plugin plugin, @Nonnull T command, String permission, String permissionMessage, String description, @Nonnull String... aliases)
T - the command executor class typeplugin - the plugin instancecommand - the command instancepermission - the command permissionpermissionMessage - the message sent when the sender doesn't the required permissiondescription - the command descriptionaliases - the command aliasesCopyright © 2022. All rights reserved.