Class GiveCommand
java.lang.Object
io.github.toberocat.toberocore.command.Command
io.github.toberocat.toberocore.command.SubCommand
io.github.toberocat.guiengine.commands.GiveCommand
public class GiveCommand
extends io.github.toberocat.toberocore.command.SubCommand
Created: 21.07.2023
- Author:
- Tobias Madlberger (Tobias)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic org.bukkit.NamespacedKey
static org.bukkit.NamespacedKey
Fields inherited from class io.github.toberocat.toberocore.command.SubCommand
args, label, onCommandOptions, onTabOptions
Fields inherited from class io.github.toberocat.toberocore.command.Command
children, parent, prefix
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected @NotNull io.github.toberocat.toberocore.command.arguments.Argument<?>[]
protected boolean
handleCommand
(@NotNull org.bukkit.command.CommandSender sender, @NotNull String[] args) protected @NotNull io.github.toberocat.toberocore.command.options.Options
options()
Methods inherited from class io.github.toberocat.toberocore.command.SubCommand
getArgs, getConfig, getConfig, parseArgs, routeCall, showInTab
Methods inherited from class io.github.toberocat.toberocore.command.Command
addChild, childrenTabList, getChild, getChildren, getLabel, getParent, getPermission, searchChild
-
Field Details
-
API_NAME_KEY
public static org.bukkit.NamespacedKey API_NAME_KEY -
GUI_ID_KEY
public static org.bukkit.NamespacedKey GUI_ID_KEY
-
-
Constructor Details
-
GiveCommand
-
-
Method Details
-
handleCommand
protected boolean handleCommand(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String[] args) throws io.github.toberocat.toberocore.command.exceptions.CommandException - Specified by:
handleCommand
in classio.github.toberocat.toberocore.command.SubCommand
- Throws:
io.github.toberocat.toberocore.command.exceptions.CommandException
-
options
@NotNull protected @NotNull io.github.toberocat.toberocore.command.options.Options options()- Specified by:
options
in classio.github.toberocat.toberocore.command.SubCommand
-
arguments
@NotNull protected @NotNull io.github.toberocat.toberocore.command.arguments.Argument<?>[] arguments()- Specified by:
arguments
in classio.github.toberocat.toberocore.command.SubCommand
-
routeTab
@Nullable public @Nullable List<String> routeTab(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String[] args) throws io.github.toberocat.toberocore.command.exceptions.CommandException - Overrides:
routeTab
in classio.github.toberocat.toberocore.command.SubCommand
- Throws:
io.github.toberocat.toberocore.command.exceptions.CommandException
-