Class SubAreasSubCmd

java.lang.Object
me.tayebyassine.homestead.commands.SubCommandBuilder
me.tayebyassine.homestead.commands.standard.subcommands.SubAreasSubCmd

public final class SubAreasSubCmd extends SubCommandBuilder
Sub-command (/hs subareas) that manages the sub-areas of the current region: create, configure, and manage their players and flags.
  • Constructor Details

    • SubAreasSubCmd

      public SubAreasSubCmd()
  • Method Details

    • onExecution

      public boolean onExecution(org.bukkit.command.CommandSender sender, String[] args)
      Description copied from class: SubCommandBuilder
      Executes this sub-command.
      Specified by:
      onExecution in class SubCommandBuilder
      Parameters:
      sender - the command sender
      args - the arguments following the sub-command name
      Returns:
      true to signal that the command was handled
    • onTabComplete

      public List<String> onTabComplete(org.bukkit.command.CommandSender sender, String[] args)
      Description copied from class: SubCommandBuilder
      Provides tab-completion suggestions for this sub-command.
      Overrides:
      onTabComplete in class SubCommandBuilder
      Parameters:
      sender - the command sender
      args - the arguments following the sub-command name
      Returns:
      the list of suggestions