Class ChatCommander<P extends CodexPlugin<P>>
java.lang.Object
studio.magemonkey.codex.commands.api.IAbstractCommand<P>
studio.magemonkey.codex.commands.api.IGeneralCommand<P>
studio.magemonkey.codex.mccore.chat.ChatCommander<P>
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor
Controls commands for the chat API
-
Field Summary
Fields inherited from class studio.magemonkey.codex.commands.api.IAbstractCommand
aliases, permission, plugin -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleanprotected voidRegisters the sub-commandsusage()Methods inherited from class studio.magemonkey.codex.commands.api.IGeneralCommand
addDefaultCommand, addSubCommand, clearSubCommands, getSubCommands, onCommand, onTabComplete, removeSubCommand
-
Constructor Details
-
ChatCommander
Constructor- Parameters:
plugin- plugin reference
-
-
Method Details
-
registerSubCommands
protected void registerSubCommands()Registers the sub-commands -
usage
- Specified by:
usagein classIAbstractCommand<P extends CodexPlugin<P>>
-
description
- Specified by:
descriptionin classIAbstractCommand<P extends CodexPlugin<P>>
-
playersOnly
public boolean playersOnly()- Specified by:
playersOnlyin classIAbstractCommand<P extends CodexPlugin<P>>
-
perform
protected void perform(@NotNull org.bukkit.command.CommandSender sender, @NotNull String label, @NotNull String[] args) - Specified by:
performin classIAbstractCommand<P extends CodexPlugin<P>>
-