Class OpCommand

java.lang.Object
org.bukkit.command.Command
org.bukkit.command.defaults.VanillaCommand
net.glowstone.command.minecraft.GlowVanillaCommand
net.glowstone.command.minecraft.OpCommand

public class OpCommand extends GlowVanillaCommand
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.glowstone.command.minecraft.GlowVanillaCommand

    GlowVanillaCommand.CommandMessages, GlowVanillaCommand.GenericMessage
  • Field Summary

    Fields inherited from class net.glowstone.command.minecraft.GlowVanillaCommand

    CACHE_SIZE, JOINER

    Fields inherited from class org.bukkit.command.Command

    description, timings, usageMessage
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates the instance for this command.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    execute(org.bukkit.command.CommandSender sender, String label, String[] args, GlowVanillaCommand.CommandMessages commandMessages)
    Executes the command, returning its success.

    Methods inherited from class net.glowstone.command.minecraft.GlowVanillaCommand

    execute, getBundle, getBundle, readResourceBundle, sendUsageMessage, testPermission

    Methods inherited from class org.bukkit.command.defaults.VanillaCommand

    getDouble, getDouble, getInteger, getRelativeDouble, matches

    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, tabComplete, testPermission, testPermissionSilent, toString, unregister

    Methods inherited from class java.lang.Object

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

    • OpCommand

      public OpCommand()
      Creates the instance for this command.
  • Method Details

    • execute

      public boolean execute(org.bukkit.command.CommandSender sender, String label, String[] args, GlowVanillaCommand.CommandMessages commandMessages)
      Description copied from class: GlowVanillaCommand
      Executes the command, returning its success.
      Specified by:
      execute in class GlowVanillaCommand
      Parameters:
      sender - Source object which is executing this command
      label - The alias of the command used
      args - All arguments passed to the command, split via ' '
      commandMessages - Object containing the title, description and permission message in the sender's locale, or set with setters
      Returns:
      true if the command was successful, otherwise false