Uses of Class
org.bukkit.command.Command
Package
Description
Classes relating to handling specialized non-chat player input.
Commands for emulating the Minecraft commands and other necessary ones for
use by a Bukkit implementation.
Classes used to manipulate the default command and topic assistance system.
Classes for handling
plugins
written in
java.-
Uses of Command in co.aikar.timings
Modifier and TypeClassDescriptionclass
Deprecated, for removal: This API element is subject to removal in a future version.Modifier and TypeMethodDescriptionTimingsManager.getCommandTiming
(@Nullable String pluginName, @NotNull Command command) Deprecated, for removal: This API element is subject to removal in a future version.Due to access restrictions, we need a helper method to get a Command TimingHandler with String group -
Uses of Command in com.destroystokyo.paper.event.brigadier
Modifier and TypeMethodDescriptionCommandRegisteredEvent.getCommand()
Deprecated.Gets theCommand
being registered.ModifierConstructorDescriptionCommandRegisteredEvent
(String commandLabel, BukkitBrigadierCommand<S> brigadierCommand, Command command, com.mojang.brigadier.tree.RootCommandNode<S> root, com.mojang.brigadier.tree.LiteralCommandNode<S> literal, com.mojang.brigadier.tree.ArgumentCommandNode<S, String> defaultArgs) Deprecated. -
Uses of Command in com.destroystokyo.paper.exception
Modifier and TypeMethodDescriptionServerCommandException.getCommand()
Gets the command which threw the exceptionModifierConstructorDescriptionprotected
ServerCommandException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Command command, CommandSender commandSender, String[] arguments) ServerCommandException
(String message, Throwable cause, Command command, CommandSender commandSender, String[] arguments) ServerCommandException
(Throwable cause, Command command, CommandSender commandSender, String[] arguments) protected
ServerTabCompleteException
(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace, Command command, CommandSender commandSender, String[] arguments) ServerTabCompleteException
(String message, Throwable cause, Command command, CommandSender commandSender, String[] arguments) ServerTabCompleteException
(Throwable cause, Command command, CommandSender commandSender, String[] arguments) -
Uses of Command in org.bukkit.command
Modifier and TypeClassDescriptionclass
class
Represents a command that delegates to one or more other commandsfinal class
Represents aCommand
belonging to a pluginModifier and TypeMethodDescriptionCommandMap.getCommand
(@NotNull String name) Gets the command registered to the specified nameSimpleCommandMap.getCommand
(@NotNull String name) MultipleCommandAlias.getCommands()
Gets the commands associated with the multi-command alias.Command.setAliases
(@NotNull List<String> aliases) Sets the list of aliases to request on registration for this command.Command.setDescription
(@NotNull String description) Sets a brief description of this command.Command.setPermissionMessage
(@Nullable String permissionMessage) Deprecated.permission messages have not worked for player-executed commands since 1.13 as clients without permission to execute a command are unaware of its existence and therefore will not send an unknown command execution to the server.Sets the example usage of this commandModifier and TypeMethodDescriptionSimpleCommandMap.getCommands()
CommandMap.getKnownCommands()
Return a Map of known commandsSimpleCommandMap.getKnownCommands()
Modifier and TypeMethodDescriptionboolean
CommandExecutor.onCommand
(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) Executes the given command, returning its success.TabCompleter.onTabComplete
(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) Requests a list of possible completions for a command argument.boolean
CommandMap.register
(@NotNull String label, @NotNull String fallbackPrefix, @NotNull Command command) Registers a command.boolean
Registers a command.boolean
SimpleCommandMap.register
(@NotNull String label, @NotNull String fallbackPrefix, @NotNull Command command) Registers a command.boolean
Registers a command.Modifier and TypeMethodDescriptionvoid
Registers all the commands belonging to a certain plugin.void
Registers all the commands belonging to a certain plugin.ModifierConstructorDescriptionMultipleCommandAlias
(@NotNull String name, @NotNull Command[] commands) -
Uses of Command in org.bukkit.command.defaults
Modifier and TypeClassDescriptionclass
class
class
Deprecated, for removal: This API element is subject to removal in a future version.class
class
-
Uses of Command in org.bukkit.help
Modifier and TypeInterfaceDescriptioninterface
HelpTopicFactory<TCommand extends Command>
A HelpTopicFactory is used to create customHelpTopic
objects from commands that inherit from a common base class or have executors that inherit from a common base class. -
Uses of Command in org.bukkit.plugin.java
Modifier and TypeMethodDescriptionboolean
JavaPlugin.onCommand
(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) Executes the given command, returning its success.JavaPlugin.onTabComplete
(@NotNull CommandSender sender, @NotNull Command command, @NotNull String alias, @NotNull String[] args) Requests a list of possible completions for a command argument.