Class ACommand
java.lang.Object
com.olziedev.playerauctions.api.auction.command.ACommand
Represents an auction sub-command that can be executed within the plugin.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
List of all possible executor types an auction command can have. -
Field Summary
Modifier and TypeFieldDescriptionThe description of the command.This determines the allowed executor type for this command, if you wish for there to be no restriction, set it to null (default value).The name of the sub-command that the player will have to enter after the main command.boolean
Should this command override any set sub-commands that have already been registered.String[]
The list of permissions for this command, a player will only need one of these and is not required to have all of them.The syntax of the command. -
Constructor Summary
ConstructorDescriptionThe constructor of the command, this does not register the command, you will need to useCommandRegistry.addSubCommand(ACommand)
to register the command. -
Method Summary
Modifier and TypeMethodDescriptionabstract void
execute
(CommandSender sender, String[] arguments) This method is called when the command has been executed by its sender.onTabComplete
(CommandSender sender, String[] arguments)
-
Field Details
-
name
The name of the sub-command that the player will have to enter after the main command. -
description
The description of the command. -
syntax
The syntax of the command. -
permissions
The list of permissions for this command, a player will only need one of these and is not required to have all of them. -
executorType
This determines the allowed executor type for this command, if you wish for there to be no restriction, set it to null (default value). -
override
public boolean overrideShould this command override any set sub-commands that have already been registered.
-
-
Constructor Details
-
ACommand
The constructor of the command, this does not register the command, you will need to useCommandRegistry.addSubCommand(ACommand)
to register the command.- Parameters:
name
- The name of the sub-command that the player will have to enter after the main command.
-
-
Method Details
-
execute
This method is called when the command has been executed by its sender.- Parameters:
sender
- The sender who has sent the command.arguments
- The arguments the sender has entered when executing the command.
-
onTabComplete
- Parameters:
sender
- The sender who has sent the command.arguments
- The arguments the sender has entered when executing the command.- Returns:
- The list of options that the sender can use when executing the command.
-