Class TownyWorldCommand
java.lang.Object
com.palmergames.bukkit.towny.command.BaseCommand
com.palmergames.bukkit.towny.command.TownyWorldCommand
- 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 TypeMethodDescriptionvoidlistWorlds(org.bukkit.command.CommandSender sender) booleanonCommand(@NotNull org.bukkit.command.CommandSender sender, @NotNull org.bukkit.command.Command cmd, @NotNull String commandLabel, String[] args) onTabComplete(org.bukkit.command.CommandSender sender, org.bukkit.command.Command command, String alias, String[] args) voidparseWorldCommand(org.bukkit.command.CommandSender sender, String[] split) tabComplete(org.bukkit.command.CommandSender sender, String[] args, boolean showWorlds) voidworldSet(org.bukkit.command.CommandSender sender, TownyWorld world, String[] split) voidworldToggle(org.bukkit.command.CommandSender sender, TownyWorld world, String[] split) 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
-
TownyWorldCommand
-
-
Method Details
-
onCommand
public boolean onCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull org.bukkit.command.Command cmd, @NotNull @NotNull String commandLabel, 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
-
tabComplete
-
parseWorldCommand
public void parseWorldCommand(org.bukkit.command.CommandSender sender, String[] split) throws TownyException - Throws:
TownyException
-
listWorlds
- Throws:
NoPermissionException
-
worldToggle
public void worldToggle(org.bukkit.command.CommandSender sender, TownyWorld world, String[] split) throws TownyException - Throws:
TownyException
-
worldSet
public void worldSet(org.bukkit.command.CommandSender sender, TownyWorld world, String[] split) throws NoPermissionException - Throws:
NoPermissionException
-