Class ForceUnclaimCommand
java.lang.Object
me.tayebyassine.homestead.commands.CommandBuilder
me.tayebyassine.homestead.commands.operator.ForceUnclaimCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter
Admin command (
/forceunclaim) that forcefully unclaims the chunk the player is standing on,
even when it would split an existing region.-
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.Methods inherited from class CommandBuilder
asPlayer, getAliases, getAllowedCommandSenderDescription, getallowedCommandSenders, getAllSubCommands, getName, getPermissions, getSubCommand, getSubCommandNames, getUsage, hasPermission, isAllowedCommandSender, isConsoleOnly, isPlayerOnly, onCommand, onDefaultTabComplete, onTabComplete, registerSubCommand, setAllowedCommandSenders, setConsoleOnly, setPermission, setPermission, setPlayerOnly, setUsage
-
Constructor Details
-
ForceUnclaimCommand
public ForceUnclaimCommand()
-
-
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
-