Class TownyAdminCommand

java.lang.Object
com.palmergames.bukkit.towny.command.BaseCommand
com.palmergames.bukkit.towny.command.TownyAdminCommand
All Implemented Interfaces:
org.bukkit.command.CommandExecutor, org.bukkit.command.TabCompleter

public class TownyAdminCommand extends BaseCommand implements org.bukkit.command.CommandExecutor
Send a list of all general townyadmin help commands to player Command: /townyadmin
  • Constructor Details

    • TownyAdminCommand

      public TownyAdminCommand(Towny towny)
  • Method Details

    • onCommand

      public boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command command, @NotNull @NotNull String label, String[] args)
      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
    • onTabComplete

      public List<String> onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String alias, String[] args)
      Specified by:
      onTabComplete in interface org.bukkit.command.TabCompleter
      Overrides:
      onTabComplete in class BaseCommand
    • parseTownyAdminCommand

      public void parseTownyAdminCommand(org.bukkit.command.CommandSender sender, String[] split) throws TownyException
      Throws:
      TownyException
    • parseAdminUnclaimCommand

      public void parseAdminUnclaimCommand(org.bukkit.entity.Player player, String[] split) throws TownyException
      Throws:
      TownyException
    • parseAdminResidentCommand

      public void parseAdminResidentCommand(org.bukkit.command.CommandSender sender, String[] split) throws TownyException
      Throws:
      TownyException
    • residentDelete

      public void residentDelete(org.bukkit.command.CommandSender sender, Resident resident) throws NoPermissionException
      Delete a resident and their data file afer a successful confirmation.
      Parameters:
      sender - Sender who ran the command.
      resident - Resident to delete.
      Throws:
      NoPermissionException
    • parseAdminTownCommand

      public void parseAdminTownCommand(org.bukkit.command.CommandSender sender, String[] split) throws TownyException
      Throws:
      TownyException
    • parseAdminNationCommand

      public void parseAdminNationCommand(org.bukkit.command.CommandSender sender, String[] split) throws TownyException
      Throws:
      TownyException
    • reloadLangs

      public void reloadLangs(org.bukkit.command.CommandSender sender)
    • reloadPerms

      public void reloadPerms(org.bukkit.command.CommandSender sender)
    • reloadConfig

      public void reloadConfig(org.bukkit.command.CommandSender sender, boolean reset)
      Reloads only the config
      Parameters:
      reset - Whether or not to reset the config.
    • reloadDatabase

      public void reloadDatabase(org.bukkit.command.CommandSender sender)
      Reloads both the database and the config. Used with a database reload command.
    • purge

      public void purge(org.bukkit.command.CommandSender sender, String[] split) throws TownyException
      Remove residents who havn't logged in for X amount of days.
      Parameters:
      split - - Current command arguments.
      Throws:
      TownyException - when an error message needs to be returned.
    • parseToggleCommand

      public void parseToggleCommand(org.bukkit.command.CommandSender sender, String[] split) throws TownyException
      Throws:
      TownyException
    • handleNationMetaCommand

      public static void handleNationMetaCommand(org.bukkit.command.CommandSender sender, Nation nation, String[] split) throws TownyException
      Throws:
      TownyException
    • handleTownMetaCommand

      public static void handleTownMetaCommand(org.bukkit.command.CommandSender sender, Town town, String[] split) throws TownyException
      Throws:
      TownyException
    • handleResidentMetaCommand

      public static void handleResidentMetaCommand(org.bukkit.command.CommandSender sender, Resident resident, String[] split) throws TownyException
      Throws:
      TownyException
    • handlePlotMetaCommand

      public static void handlePlotMetaCommand(org.bukkit.entity.Player player, String[] split) throws TownyException
      Throws:
      TownyException