Package org.kingdoms.commands
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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Map<SupportedLanguage,Map<String, KingdomsCommand>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCommand(SupportedLanguage lang, String[] args) static @Unmodifiable @NotNull Map<SupportedLanguage,Map<String, KingdomsCommand>> static Map<String,KingdomsCommand> getCommands(SupportedLanguage locale) booleanonCommand(@NonNull org.bukkit.command.CommandSender sender, @NonNull org.bukkit.command.Command cmd, @NonNull String label, @NonNull String[] args) static voidstatic voidreload()
-
Field Details
-
COMMANDS
-
-
Constructor Details
-
KingdomsCommandHandler
-
-
Method Details
-
reload
public static void reload() -
registerCommands
public static void registerCommands() -
getCommands
@NotNull public static @Unmodifiable @NotNull Map<SupportedLanguage,Map<String, getCommands()KingdomsCommand>> -
getCommands
-
getCommand
public static KingdomsCommandHandler.CommandInformation getCommand(SupportedLanguage lang, String[] args) -
onCommand
public boolean onCommand(@NonNull org.bukkit.command.CommandSender sender, @NonNull org.bukkit.command.Command cmd, @NonNull String label, @NonNull String[] args) - Specified by:
onCommandin interfaceorg.bukkit.command.CommandExecutor
-