Package net.glowstone.command.minecraft
Class TestForBlockCommand
java.lang.Object
org.bukkit.command.Command
org.bukkit.command.defaults.VanillaCommand
net.glowstone.command.minecraft.GlowVanillaCommand
net.glowstone.command.minecraft.TestForBlockCommand
-
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 messages) Executes the command, returning its success.tabComplete
(org.bukkit.command.CommandSender sender, String alias, String[] args) 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, getAliases, getDescription, getLabel, getName, getPermission, getPermissionMessage, getTimingName, getUsage, isRegistered, register, setAliases, setDescription, setLabel, setName, setPermission, setPermissionMessage, setUsage, tabComplete, testPermission, testPermissionSilent, toString, unregister
-
Constructor Details
-
TestForBlockCommand
public TestForBlockCommand()Creates the instance for this command.
-
-
Method Details
-
execute
public boolean execute(org.bukkit.command.CommandSender sender, String label, String[] args, GlowVanillaCommand.CommandMessages messages) 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 ' 'messages
- 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
-
tabComplete
public List<String> tabComplete(org.bukkit.command.CommandSender sender, String alias, String[] args) throws IllegalArgumentException - Overrides:
tabComplete
in classorg.bukkit.command.Command
- Throws:
IllegalArgumentException
-