Class ResidentCommand

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

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

    • ResidentCommand

      public ResidentCommand(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
    • parseResidentCommand

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

      public void listResidents(org.bukkit.command.CommandSender sender) throws TownyException
      Throws:
      TownyException
    • residentSet

      public void residentSet(org.bukkit.entity.Player player, String[] split) throws TownyException
      Command: /resident set [] ... []
      Parameters:
      player - Player.
      split - Current command arguments.
      Throws:
      TownyException - Exception.
    • residentFriend

      public static void residentFriend(org.bukkit.entity.Player player, String[] split, boolean admin, Resident resident) throws TownyException
      Throws:
      TownyException
    • residentFriendAdd

      public static void residentFriendAdd(org.bukkit.entity.Player player, Resident resident, List<Resident> friending)
    • residentFriendRemove

      public static void residentFriendRemove(org.bukkit.entity.Player player, Resident resident, List<Resident> unFriending)