Class ClaimCommand
java.lang.Object
me.tayebyassine.homestead.commands.CommandBuilder
me.tayebyassine.homestead.commands.standard.ClaimCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
Player command (
/claim) that claims chunks, either from a wand selection
or around the player with an optional radius.-
Field Summary
Fields inherited from class CommandBuilder
plugin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanonDefaultExecution(org.bukkit.command.CommandSender sender, String[] args) Executes the command when no (matching) sub-command is provided.onDefaultTabComplete(org.bukkit.command.CommandSender sender, String[] args) Provides tab-completion suggestions for the default execution of this command.Methods inherited from class CommandBuilder
asPlayer, getAliases, getAllowedCommandSenderDescription, getallowedCommandSenders, getAllSubCommands, getName, getPermissions, getSubCommand, getSubCommandNames, getUsage, hasPermission, isAllowedCommandSender, isConsoleOnly, isPlayerOnly, onCommand, onTabComplete, registerSubCommand, setAllowedCommandSenders, setConsoleOnly, setPermission, setPermission, setPlayerOnly, setUsage
-
Constructor Details
-
ClaimCommand
public ClaimCommand()
-
-
Method Details
-
onDefaultExecution
Description copied from class:CommandBuilderExecutes the command when no (matching) sub-command is provided.- Specified by:
onDefaultExecutionin classCommandBuilder- Parameters:
sender- the command senderargs- the full command arguments- Returns:
trueto signal that the command was handled
-
onDefaultTabComplete
Description copied from class:CommandBuilderProvides tab-completion suggestions for the default execution of this command.- Overrides:
onDefaultTabCompletein classCommandBuilder- Parameters:
sender- the command senderargs- the full command arguments- Returns:
- the list of suggestions
-