Package com.ultikits.ultitools.commands
Class UltiToolsCommands
java.lang.Object
com.ultikits.ultitools.abstracts.command.BaseCommandExecutor
com.ultikits.ultitools.commands.UltiToolsCommands
- All Implemented Interfaces:
org.bukkit.command.CommandExecutor,org.bukkit.command.TabCompleter,org.bukkit.command.TabExecutor
@CmdExecutor(description="UltiToolsCommands",
alias={"ul","ultitools","ulti"},
requireOp=true)
public class UltiToolsCommands
extends BaseCommandExecutor
The command that reloads UltiTools-API.
- Version:
- 1.0.0
- Author:
- wisdomme, qianmo
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final StringFramework i18n key: the/ul reload <name>reply when the module's reload threw (#509).(package private) static final StringFramework i18n key: the/ul reload <name>reply when the module's reload hook reported parts that did not reload (#529). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringdescribeFailure(Throwable failure) A failure's message for a one-line reply, or its class name when it carries none.protected voidhandleHelp(org.bukkit.command.CommandSender sender) Handles the help command.voidhelp(org.bukkit.command.CommandSender sender) voidlistPlugins(org.bukkit.command.CommandSender sender) voidreloadAll(org.bukkit.command.CommandSender sender) /ul reload: reloads the framework and every module, each isolated from the others' failures, and replies the summary to the sender -- which modules failed, if any (#509).voidreloadPlugin(org.bukkit.command.CommandSender sender, String name) voidReloads the framework and every module.Methods inherited from class com.ultikits.ultitools.abstracts.command.BaseCommandExecutor
addValidator, buildMethodParams, createDefaultValidatorChain, executeCommand, getHelpCommand, getMappings, matchMethod, onCommand, onTabComplete, parseParameters, parseParameterValue, removeValidator, suggest, validateParameterCount
-
Field Details
-
RELOAD_FAILED_REPLY_KEY
Framework i18n key: the/ul reload <name>reply when the module's reload threw (#509).- See Also:
-
RELOAD_PARTIAL_REPLY_KEY
Framework i18n key: the/ul reload <name>reply when the module's reload hook reported parts that did not reload (#529). The same text as the/ul reloadsummary line for such a module, whose keyPluginManagerdeclares.- See Also:
-
-
Constructor Details
-
UltiToolsCommands
public UltiToolsCommands()
-
-
Method Details
-
reloadPlugins
public void reloadPlugins()Reloads the framework and every module./ul reloadis handled byreloadAll(CommandSender)since 6.3.0, which also replies the reload summary to the sender (#509); this method is kept, unchanged, for any code that calls it directly. -
reloadAll
public void reloadAll(org.bukkit.command.CommandSender sender) /ul reload: reloads the framework and every module, each isolated from the others' failures, and replies the summary to the sender -- which modules failed, if any (#509).- Parameters:
sender- the command sender
-
reloadPlugin
-
describeFailure
A failure's message for a one-line reply, or its class name when it carries none.- Parameters:
failure- the failure to describe- Returns:
- a non-null description
-
suggestModuleNames
-
help
public void help(org.bukkit.command.CommandSender sender) -
listPlugins
public void listPlugins(org.bukkit.command.CommandSender sender) -
handleHelp
protected void handleHelp(org.bukkit.command.CommandSender sender) Description copied from class:BaseCommandExecutorHandles the help command. Override to provide custom help.- Specified by:
handleHelpin classBaseCommandExecutor- Parameters:
sender- the command sender
-