Class PluginCommandExecutor
java.lang.Object
de.themoep.resourcepacksplugin.core.commands.PluginCommandExecutor
- Direct Known Subclasses:
ResetPackCommandExecutor
,ResourcepacksPluginCommandExecutor
,UsePackCommandExecutor
Created by Phoenix616 on 03.02.2016.
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected final ResourcepacksPlugin
protected Map<String,
PluginCommandExecutor> protected Map<String,
PluginCommandExecutor> -
Constructor Summary
ConstructorDescriptionPluginCommandExecutor
(ResourcepacksPlugin plugin, PluginCommandExecutor parent, String usage) PluginCommandExecutor
(ResourcepacksPlugin plugin, PluginCommandExecutor parent, String usage, String permission) PluginCommandExecutor
(ResourcepacksPlugin plugin, PluginCommandExecutor parent, String usage, String permission, String... aliases) PluginCommandExecutor
(ResourcepacksPlugin plugin, String usage) PluginCommandExecutor
(ResourcepacksPlugin plugin, String usage, String permission) -
Method Summary
Modifier and TypeMethodDescriptionboolean
execute
(ResourcepacksPlayer sender, String[] args) String[]
getKey()
protected String
getMessage
(ResourcepacksPlayer sender, String key, String... replacements) getName()
getPath()
getSubCommand
(String name) getUsage()
void
registerSubCommands
(PluginCommandExecutor... subCommands) abstract boolean
run
(ResourcepacksPlayer sender, String[] args) void
sendMessage
(ResourcepacksPlayer sender, String key, String... replacements)
-
Field Details
-
plugin
-
permission
-
subCommands
-
subCommandAliases
-
-
Constructor Details
-
PluginCommandExecutor
-
PluginCommandExecutor
-
PluginCommandExecutor
public PluginCommandExecutor(ResourcepacksPlugin plugin, PluginCommandExecutor parent, String usage) -
PluginCommandExecutor
public PluginCommandExecutor(ResourcepacksPlugin plugin, PluginCommandExecutor parent, String usage, String permission) -
PluginCommandExecutor
public PluginCommandExecutor(ResourcepacksPlugin plugin, PluginCommandExecutor parent, String usage, String permission, String... aliases)
-
-
Method Details
-
run
-
execute
-
getSubCommands
-
getSubCommand
-
sendMessage
-
getMessage
-
getPath
-
getKey
-
registerSubCommands
-
getName
-
getUsage
-
getPlugin
-
getPermission
-
getAliases
-