Class UltiToolsCommands
java.lang.Object
com.ultikits.ultitools.abstracts.command.BaseCommandExecutor
com.ultikits.ultitools.commands.UltiToolsCommands
@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
-
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) private static booleanisNativeConsole(org.bukkit.command.CommandSender sender) Only a console sender can be the native console; ordinary feedback needs no server lookup.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 BaseCommandExecutor
addValidator, awaitAsyncCommands, buildMethodParams, createDefaultValidatorChain, executeCommand, getHelpCommand, getMappings, handleGatedHelp, helpCommand, invokeTyped, removeValidator, suggest, suggestions
-
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
-
isNativeConsole
private static boolean isNativeConsole(org.bukkit.command.CommandSender sender) Only a console sender can be the native console; ordinary feedback needs no server lookup. -
describeFailure
-
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
-