Package org.bukkit.command
Class MultipleCommandAlias
- java.lang.Object
-
- org.bukkit.command.Command
-
- org.bukkit.command.MultipleCommandAlias
-
public class MultipleCommandAlias extends Command
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
Constructors Constructor Description MultipleCommandAlias(String name, Command[] commands)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
execute(CommandSender sender, String commandLabel, String[] args)
Executes the command, returning its successCommand[]
getCommands()
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
-
-
-
-
Method Detail
-
getCommands
@NotNull public Command[] 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
-
-