E - The Plugin typepublic class ReloadCommand<E extends org.bukkit.plugin.Plugin> extends SubCommand<E>
handler, plugin| Constructor and Description |
|---|
ReloadCommand(E plugin,
CommandHandler<E> handler)
ReloadCommand constructor |
| Modifier and Type | Method and Description |
|---|---|
CommandStatus |
execute(org.bukkit.command.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(org.bukkit.command.CommandSender sender,
String... args)
Returns a
List of possible strings that could be supplied for
the next argument |
compareTo, getUsage, hasPermissionpublic ReloadCommand(E plugin, CommandHandler<E> handler)
ReloadCommand constructorplugin - handler - public CommandStatus execute(org.bukkit.command.CommandSender sender, String... args)
ReloadEvent and calls any relevant reload methods for
the Plugin instance passedexecute in class SubCommand<E extends org.bukkit.plugin.Plugin>sender - The command executorargs - The command arguments, starting after the subcommand nameCommandStatus representing the result of the commandpublic List<String> tabComplete(org.bukkit.command.CommandSender sender, String... args)
SubCommandList of possible strings that could be supplied for
the next argumenttabComplete in class SubCommand<E extends org.bukkit.plugin.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 SubCommand<E extends org.bukkit.plugin.Plugin>public Lang info()
info in class SubCommand<E extends org.bukkit.plugin.Plugin>Copyright © 2015. All rights reserved.