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
Executes the command, returning its successGets the commands associated with the multi-command alias.Methods inherited from class org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getTimingName, 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 @NotNull CommandSender sender, @NotNull @NotNull String commandLabel, @NotNull @NotNull String[] args)Description copied from class:Command
Executes the command, returning its success
-