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
Send a list of all general townyadmin help commands to player Command:
/townyadmin
-
Field Summary
Fields inherited from class com.palmergames.bukkit.towny.command.BaseCommand
numbers, setOnOffCompletes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
handleNationMetaCommand
(org.bukkit.command.CommandSender sender, Nation nation, String[] split) static void
handlePlotMetaCommand
(org.bukkit.entity.Player player, String[] split) static void
handleResidentMetaCommand
(org.bukkit.command.CommandSender sender, Resident resident, String[] split) static void
handleTownMetaCommand
(org.bukkit.command.CommandSender sender, Town town, String[] split) boolean
onCommand
(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command command, @NotNull String label, String[] args) onTabComplete
(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String alias, String[] args) void
parseAdminNationCommand
(org.bukkit.command.CommandSender sender, String[] split) void
parseAdminResidentCommand
(org.bukkit.command.CommandSender sender, String[] split) void
parseAdminTownCommand
(org.bukkit.command.CommandSender sender, String[] split) void
parseAdminUnclaimCommand
(org.bukkit.entity.Player player, String[] split) void
parseToggleCommand
(org.bukkit.command.CommandSender sender, String[] split) void
parseTownyAdminCommand
(org.bukkit.command.CommandSender sender, String[] split) void
Remove residents who havn't logged in for X amount of days.void
reloadConfig
(org.bukkit.command.CommandSender sender, boolean reset) Reloads only the configvoid
reloadDatabase
(org.bukkit.command.CommandSender sender) Reloads both the database and the config.void
reloadLangs
(org.bukkit.command.CommandSender sender) void
reloadPerms
(org.bukkit.command.CommandSender sender) void
residentDelete
(org.bukkit.command.CommandSender sender, Resident resident) Delete a resident and their data file afer a successful confirmation.Methods inherited from class com.palmergames.bukkit.towny.command.BaseCommand
catchConsole, catchNPCResident, catchPlayer, checkPermOrThrow, checkPermOrThrowWithMessage, filterByStartOrGetTownyStartingWith, getNationFromPlayerOrThrow, getNationFromResidentOrThrow, getNationFromTownOrThrow, getNationOrThrow, getNationResidentNamesOfPlayerStartingWith, getResidentOrThrow, getResidentOrThrow, getResidentOrThrow, getResidentsOfTownStartingWith, getResidentsWithoutTownStartingWith, getTownFromPlayerOrThrow, getTownFromResidentOrThrow, getTownOrThrow, getTownResidentNamesOfPlayerStartingWith, getTownyStartingWith, getVisibleResidentsForPlayerWithoutTownsStartingWith, parseToggleChoice, prettyMoney
-
Constructor Details
-
TownyAdminCommand
-
-
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 interfaceorg.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 interfaceorg.bukkit.command.TabCompleter
- Overrides:
onTabComplete
in classBaseCommand
-
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
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
-