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

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

    • TownyWorldCommand

      public TownyWorldCommand(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 commandLabel, 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
    • tabComplete

      public List<String> tabComplete(org.bukkit.command.CommandSender sender, String[] args, boolean showWorlds)
    • parseWorldCommand

      public void parseWorldCommand(org.bukkit.command.CommandSender sender, String[] split) throws TownyException
      Throws:
      TownyException
    • listWorlds

      public void listWorlds(org.bukkit.command.CommandSender sender) throws NoPermissionException
      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