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
-
Field Summary
Fields inherited from class com.palmergames.bukkit.towny.command.BaseCommand
numbers, setOnOffCompletes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidlistResidents(org.bukkit.command.CommandSender sender) 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) voidparseResidentCommand(org.bukkit.entity.Player player, String[] split) static voidresidentFriend(org.bukkit.entity.Player player, String[] split, boolean admin, Resident resident) static voidresidentFriendAdd(org.bukkit.entity.Player player, Resident resident, List<Resident> friending) static voidresidentFriendRemove(org.bukkit.entity.Player player, Resident resident, List<Resident> unFriending) voidresidentSet(org.bukkit.entity.Player player, String[] split) Command: /resident set [] ... []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
-
ResidentCommand
-
-
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
-
parseResidentCommand
public void parseResidentCommand(org.bukkit.entity.Player player, String[] split) throws TownyException - Throws:
TownyException
-
listResidents
- Throws:
TownyException
-
residentSet
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
-
residentFriendRemove
-