E - The Plugin typepublic class ReloadCommand<E extends Plugin> extends CommandNode<E>
plugin| Constructor and Description |
|---|
ReloadCommand(E plugin)
ReloadCommand constructor |
| Modifier and Type | Method and Description |
|---|---|
CommandStatus |
execute(CommandSender sender,
String... args)
Fires the
ReloadEvent and calls any relevant reload methods for
the Plugin instance passed |
String |
getName()
Subcommand name: "reload"
Returns the name of the command, used for storing a HashMap of
the commands as well as the subcommand argument |
Lang |
info()
Information about this specific command.
|
List<String> |
tabComplete(CommandSender sender,
String... args)
Returns a
List of possible strings that could be supplied for the
next argument |
addChild, addChild, alias, aliasAsBukkitCommand, attachReloadCommand, compareTo, disallowProxiedSenders, filterUsage, getAliases, getChild, getChild, getChildren, getClosestChild, getHelpOutput, getLinkingNode, getParent, getUsage, hasRestriction, isExecutable, minimumArguments, onCommand, onTabComplete, registerAsBukkitCommand, registerAsListener, requirePermission, setExecutable, setRestriction, toString, traverse, usagepublic ReloadCommand(E plugin)
ReloadCommand constructorplugin - public CommandStatus execute(CommandSender sender, String... args)
ReloadEvent and calls any relevant reload methods for
the Plugin instance passedexecute in class CommandNode<E extends Plugin>sender - The command executorargs - The command arguments, starting after the subcommand nameCommandStatus representing the result of the command.
This will throw an NPE if null is returnedpublic List<String> tabComplete(CommandSender sender, String... args)
CommandNodeList of possible strings that could be supplied for the
next argumenttabComplete in class CommandNode<E extends Plugin>sender - The command "tabber"args - The command arguments, starting after the subcommand name and
contains potentially unfinished argumentsList of strings that can be supplied for the next argpublic String getName()
HashMap of
the commands as well as the subcommand argumentgetName in class CommandNode<E extends Plugin>public Lang info()
info in class CommandNode<E extends Plugin>Copyright © 2015. All rights reserved.