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

public class TownyCommand extends BaseCommand implements org.bukkit.command.CommandExecutor
  • Constructor Details

    • TownyCommand

      public TownyCommand(Towny instance)
  • 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:
      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
    • getUniverseStats

      public List<String> getUniverseStats(Translator translator)
    • 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

      public List<String> getTownyPrices(Town town, Translator translator)
      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

      public List<String> getTopBankBalance(List<Government> governments)
    • getMostResidents

      public List<String> getMostResidents(List<ResidentList> list)
    • getMostLand

      public List<String> getMostLand(List<TownBlockOwner> list)