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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
listWorlds
(org.bukkit.command.CommandSender sender) boolean
onCommand
(@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) void
parseWorldCommand
(org.bukkit.command.CommandSender sender, String[] split) tabComplete
(org.bukkit.command.CommandSender sender, String[] args, boolean showWorlds) void
worldSet
(org.bukkit.command.CommandSender sender, TownyWorld world, String[] split) void
worldToggle
(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:
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
-
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
-