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

    Fields
    Modifier and Type
    Field
    Description
    static 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected @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
     
    @Nullable List<String>
    routeTab(@NotNull org.bukkit.command.CommandSender sender, @NotNull String[] args)
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

  • 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 class io.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 class io.github.toberocat.toberocore.command.SubCommand
    • arguments

      @NotNull protected @NotNull io.github.toberocat.toberocore.command.arguments.Argument<?>[] arguments()
      Specified by:
      arguments in class io.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 class io.github.toberocat.toberocore.command.SubCommand
      Throws:
      io.github.toberocat.toberocore.command.exceptions.CommandException