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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
listResidents
(org.bukkit.command.CommandSender sender) boolean
onCommand
(@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) void
parseResidentCommand
(org.bukkit.entity.Player player, String[] split) static void
residentFriend
(org.bukkit.entity.Player player, String[] split, boolean admin, Resident resident) static void
residentFriendAdd
(org.bukkit.entity.Player player, Resident resident, List<Resident> friending) static void
residentFriendRemove
(org.bukkit.entity.Player player, Resident resident, List<Resident> unFriending) void
residentSet
(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:
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
-
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
-