Class DummyCommand

java.lang.Object
org.bukkit.command.Command
io.github.simplexdevelopment.cl.DummyCommand
All Implemented Interfaces:
org.bukkit.command.PluginIdentifiableCommand

public final class DummyCommand extends org.bukkit.command.Command implements org.bukkit.command.PluginIdentifiableCommand
  • 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)
    The actual executor method.
    @NotNull org.bukkit.plugin.Plugin
     

    Methods inherited from class org.bukkit.command.Command

    broadcastCommandMessage, broadcastCommandMessage, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getTimingName, getUsage, isRegistered, permissionMessage, permissionMessage, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, 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)
      The actual executor method.
      Specified by:
      execute in class org.bukkit.command.Command
      Parameters:
      sender - The user who sent the command
      commandLabel - The name of the command
      args - Any additional arguments the user may input
      Returns:
      Successfully executed the command or not
    • getPlugin

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