Class KingdomsCommandHandler

java.lang.Object
org.kingdoms.commands.KingdomsCommandHandler
All Implemented Interfaces:
org.bukkit.command.CommandExecutor

public final class KingdomsCommandHandler extends Object implements org.bukkit.command.CommandExecutor
  • Field Details

  • Constructor Details

    • KingdomsCommandHandler

      public KingdomsCommandHandler(Kingdoms plugin)
  • Method Details

    • reload

      public static void reload()
    • registerCommands

      public static void registerCommands()
    • getCommands

      @NotNull public static @Unmodifiable @NotNull Map<org.kingdoms.locale.Language,Map<String,KingdomsCommand>> getCommands()
    • getCommands

      public static Map<String,KingdomsCommand> getCommands(org.kingdoms.locale.Language locale)
    • getCommand

      public static KingdomsCommandHandler.CommandInformation getCommand(org.kingdoms.locale.Language lang, String[] args)
    • parse

      @NotNull public static @NotNull CommandContext parse(org.bukkit.command.CommandSender sender, String[] args)
      If the command is unrecognized, CommandContext.getCommand() will return null.
    • handle

      public static boolean handle(@NotNull @NotNull CommandContext ctx)
    • onCommand

      public boolean onCommand(@NonNull org.bukkit.command.CommandSender sender, @NonNull org.bukkit.command.Command cmd, @NonNull String label, @NonNull String[] args)
      Specified by:
      onCommand in interface org.bukkit.command.CommandExecutor
    • getMainDisplayName

      public static String getMainDisplayName()
    • getMainCommandNames

      public static Set<String> getMainCommandNames(boolean includeHardcoded)
    • startsWithKingdomsCommand

      public static boolean startsWithKingdomsCommand(String first)