Class OverrideFlagSubCmd

java.lang.Object
me.tayebyassine.homestead.commands.SubCommandBuilder
me.tayebyassine.homestead.commands.operator.subcommands.OverrideFlagSubCmd

public final class OverrideFlagSubCmd extends SubCommandBuilder
Admin sub-command (/hsadmin overrideflag) that applies a flag state across every region, ignoring the regular per-region permission checks.
  • Constructor Details

    • OverrideFlagSubCmd

      public OverrideFlagSubCmd()
  • 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