Class TownyCommand
java.lang.Object
com.palmergames.bukkit.towny.command.BaseCommand
com.palmergames.bukkit.towny.command.TownyCommand
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter
-
Field Summary
Fields inherited from class com.palmergames.bukkit.towny.command.BaseCommand
numbers, setOnOffCompletes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMostLand(List<TownBlockOwner> list) getMostResidents(List<ResidentList> list) getTopBankBalance(List<Government> governments) getTownyPrices(Town town, Translator translator) Returns prices for town's taxes/upkeep.getUniverseStats(Translator translator) booleanonCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command cmd, @NotNull String label, String[] args) onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String alias, String[] args) static voidshowMap(org.bukkit.entity.Player player) Send a map of the nearby townblocks status to player Command: /towny mapMethods 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
-
TownyCommand
-
-
Method Details
-
onCommand
public boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command cmd, @NotNull @NotNull String label, String[] args) - Specified by:
onCommandin 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:
onTabCompletein interfaceorg.bukkit.command.TabCompleter- Overrides:
onTabCompletein classBaseCommand
-
getUniverseStats
-
showMap
public static void showMap(org.bukkit.entity.Player player) Send a map of the nearby townblocks status to player Command: /towny map- Parameters:
player- - Player.
-
getTownyPrices
Returns prices for town's taxes/upkeep.- Parameters:
town- - The town being checked.translator- - The Translator to use.- Returns:
- - Prices screen for a town.
-
getTopBankBalance
-
getMostResidents
-
getMostLand
-