Class FormattedCommandAlias
java.lang.Object
org.bukkit.command.Command
org.bukkit.command.FormattedCommandAlias
- Since:
- 1.7.10
- API Note:
- plugin developers should prefer to use the Brigadier command API. For a direct alternative to Bukkit commands, Basic commands are recommended
-
Field Summary
Fields inherited from class Command
description, timings, usageMessage -
Constructor Summary
ConstructorsConstructorDescriptionFormattedCommandAlias(@NotNull String alias, @NotNull String[] formatStrings) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(@NotNull CommandSender sender, @NotNull String commandLabel, @NotNull String[] args) Executes the command, returning its success@NotNull StringMethods inherited from class Command
broadcastCommandMessage, broadcastCommandMessage, broadcastCommandMessage, broadcastCommandMessage, canBeOverriden, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getUsage, isRegistered, permissionMessage, permissionMessage, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, tabComplete, testPermission, testPermissionSilent, toString, unregister
-
Constructor Details
-
FormattedCommandAlias
-
-
Method Details
-
execute
public boolean execute(@NotNull @NotNull CommandSender sender, @NotNull @NotNull String commandLabel, @NotNull @NotNull String[] args) Description copied from class:CommandExecutes the command, returning its success -
getTimingName
- Overrides:
getTimingNamein classCommand- Since:
- 1.9.4
-