Package net.glowstone.command.minecraft
Class StopCommand
java.lang.Object
org.bukkit.command.Command
org.bukkit.command.defaults.VanillaCommand
net.glowstone.command.minecraft.GlowVanillaCommand
net.glowstone.command.minecraft.StopCommand
In vanilla Minecraft, this command takes no arguments; but as an extension, Glowstone treats any
arguments as a custom kick message.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
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
-
Constructor Details
-
StopCommand
public StopCommand()
-
-
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 classGlowVanillaCommand
- Parameters:
sender
- Source object which is executing this commandlabel
- The alias of the command usedargs
- 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
-