Class BukkitDelegate

java.lang.Object
org.bukkit.command.Command
me.totalfreedom.command.BukkitDelegate
All Implemented Interfaces:
org.bukkit.command.PluginIdentifiableCommand

public final class BukkitDelegate extends org.bukkit.command.Command implements org.bukkit.command.PluginIdentifiableCommand
This class is acts as a delegate between our custom command implementation and the Bukkit API.
This class is not meant to be used directly, and is only public to allow for the Bukkit API to access it. As a result, this file will remain undocumented.

This class is not thread-safe.
This class is not meant to be extended.
This class is not meant to be instantiated.
This class is not meant to be used outside Patchwork.
  • Field Summary

    Fields inherited from class org.bukkit.command.Command

    description, timings, usageMessage
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    execute(@NotNull org.bukkit.command.CommandSender sender, @NotNull String commandLabel, @NotNull String[] args)
     
    @NotNull org.bukkit.plugin.Plugin
     
    tabComplete(org.bukkit.command.CommandSender sender, String alias, String[] args)
     

    Methods inherited from class org.bukkit.command.Command

    broadcastCommandMessage, broadcastCommandMessage, broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getTimingName, getUsage, isRegistered, permissionMessage, permissionMessage, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, testPermissionSilent, toString, unregister

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Method Details

    • execute

      public boolean execute(@NotNull @NotNull org.bukkit.command.CommandSender sender, @NotNull @NotNull String commandLabel, @NotNull @NotNull String[] args)
      Specified by:
      execute in class org.bukkit.command.Command
    • tabComplete

      public List<String> tabComplete(org.bukkit.command.CommandSender sender, String alias, String[] args)
      Overrides:
      tabComplete in class org.bukkit.command.Command
    • getPlugin

      @NotNull public @NotNull org.bukkit.plugin.Plugin getPlugin()
      Specified by:
      getPlugin in interface org.bukkit.command.PluginIdentifiableCommand