Class SetMapColorSubCmd

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

public final class SetMapColorSubCmd extends SubCommandBuilder
Sub-command (/hs setmapcolor) that changes the map color of the current region, or opens the color menu when no color is specified.
  • Constructor Details

    • SetMapColorSubCmd

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