Class IndexCommand
java.lang.Object
org.bukkit.command.Command
me.wolfyscript.customcrafting.commands.IndexCommand
- Direct Known Subclasses:
CommandCC
,CommandRecipe
public abstract class IndexCommand
extends org.bukkit.command.Command
-
Field Summary
Fields inherited from class org.bukkit.command.Command
description, timings, usageMessage
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
IndexCommand(@NotNull String name)
protected
IndexCommand(@NotNull String name, @NotNull String description, @NotNull String usageMessage, @NotNull List<String> aliases)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
execute(@NotNull org.bukkit.command.CommandSender sender, @NotNull String s, @NotNull String[] args)
void
registerSubCommand(AbstractSubCommand subCommand)
tabComplete(@NotNull org.bukkit.command.CommandSender sender, @NotNull String alias, @NotNull String[] strings)
toString()
Methods inherited from class org.bukkit.command.Command
broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getTimingName, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, testPermissionSilent, unregister
-
Constructor Details
-
IndexCommand
-
IndexCommand
-
-
Method Details
-
registerSubCommand
-
execute
public boolean execute(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String s, @NotNull @NotNull String[] args)- Specified by:
execute
in classorg.bukkit.command.Command
-
tabComplete
@NotNull public @NotNull List<String> tabComplete(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String alias, @NotNull @NotNull String[] strings) throws IllegalArgumentException- Overrides:
tabComplete
in classorg.bukkit.command.Command
- Throws:
IllegalArgumentException
-
getSubCommands
-
toString
- Overrides:
toString
in classorg.bukkit.command.Command
-