Package org.bukkit.command
Class MultipleCommandAlias
java.lang.Object
org.bukkit.command.Command
org.bukkit.command.MultipleCommandAlias
Represents a command that delegates to one or more other commands
-
Field Summary
Fields inherited from class org.bukkit.command.Command
description, timings, usageMessage
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
execute
(CommandSender sender, String commandLabel, String[] args) Executes the command, returning its successCommand[]
Gets the commands associated with the multi-command alias.Methods inherited from class org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, tabComplete, testPermission, testPermissionSilent, toString, unregister
-
Constructor Details
-
MultipleCommandAlias
-
-
Method Details
-
getCommands
Gets the commands associated with the multi-command alias.- Returns:
- commands associated with alias
-
execute
public boolean execute(@NotNull CommandSender sender, @NotNull String commandLabel, @NotNull String[] args) Description copied from class:Command
Executes the command, returning its success
-