Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.command.defaults.TimeCommand Class Reference
+ Inheritance diagram for org.bukkit.command.defaults.TimeCommand:
+ Collaboration diagram for org.bukkit.command.defaults.TimeCommand:

Public Member Functions

 TimeCommand ()
 
boolean execute (CommandSender sender, String currentAlias, String[] args)
 Executes the command, returning its success.
 
List< String > tabComplete (CommandSender sender, String alias, String[] args)
 
- Public Member Functions inherited from org.bukkit.command.defaults.VanillaCommand
boolean matches (String input)
 
- Public Member Functions inherited from org.bukkit.command.Command
List< String > tabComplete (CommandSender sender, String[] args)
 
List< String > tabComplete (CommandSender sender, String alias, String[] args) throws IllegalArgumentException
 Executed on tab completion for this command, returning a list of options the player can tab through.
 
String getName ()
 Returns the name of this command.
 
String getPermission ()
 Gets the permission required by users to be able to perform this command.
 
void setPermission (String permission)
 Sets the permission required by users to be able to perform this command.
 
boolean testPermission (CommandSender target)
 Tests the given CommandSender to see if they can perform this command.
 
boolean testPermissionSilent (CommandSender target)
 Tests the given CommandSender to see if they can perform this command.
 
String getLabel ()
 Returns the current lable for this command.
 
boolean setLabel (String name)
 Sets the label of this command If the command is currently registered the label change will only take effect after its been reregistered e.g.
 
boolean register (CommandMap commandMap)
 Registers this command to a CommandMap Once called it only allows changes the registered CommandMap.
 
boolean unregister (CommandMap commandMap)
 Unregisters this command from the passed CommandMap applying any outstanding changes.
 
boolean isRegistered ()
 Returns the current registered state of this command.
 
List< String > getAliases ()
 Returns a list of active aliases of this command.
 
String getPermissionMessage ()
 Returns a message to be displayed on a failed permission check for this command.
 
String getDescription ()
 Gets a brief description of this command.
 
String getUsage ()
 Gets an example usage of this command.
 
Command setAliases (List< String > aliases)
 Sets the list of aliases to request on registration for this command.
 
Command setDescription (String description)
 Sets a brief description of this command.
 
Command setPermissionMessage (String permissionMessage)
 Sets the message sent when a permission check fails.
 
Command setUsage (String usage)
 Sets the example usage of this command.
 
String toString ()
 

Additional Inherited Members

- Static Public Member Functions inherited from org.bukkit.command.defaults.VanillaCommand
static double getDouble (CommandSender sender, String input)
 
static double getDouble (CommandSender sender, String input, double min, double max)
 
- Protected Member Functions inherited from org.bukkit.command.defaults.VanillaCommand
 VanillaCommand (String name)
 
 VanillaCommand (String name, String description, String usageMessage, List< String > aliases)
 
int getInteger (CommandSender sender, String value, int min)
 
- Protected Attributes inherited from org.bukkit.command.Command
String description = ""
 
String usageMessage
 

Detailed Description

Definition at line 16 of file TimeCommand.java.

Constructor & Destructor Documentation

org.bukkit.command.defaults.TimeCommand.TimeCommand ( )

Member Function Documentation

boolean org.bukkit.command.defaults.TimeCommand.execute ( CommandSender  sender,
String  commandLabel,
String[]  args 
)
virtual

Executes the command, returning its success.

Parameters
senderSource object which is executing this command
commandLabelThe alias of the command used
argsAll arguments passed to the command, split via ' '
Returns
true if the command was successful, otherwise false

Implements org.bukkit.command.Command.

Definition at line 28 of file TimeCommand.java.

References org.bukkit.command.Command.broadcastCommandMessage(), org.bukkit.command.defaults.VanillaCommand.getInteger(), org.bukkit.Bukkit.getWorlds(), org.bukkit.permissions.Permissible.hasPermission(), org.bukkit.ChatColor.RED, org.bukkit.command.CommandSender.sendMessage(), and org.bukkit.command.Command.usageMessage.

List<String> org.bukkit.command.defaults.TimeCommand.tabComplete ( CommandSender  sender,
String  alias,
String[]  args 
)

Definition at line 76 of file TimeCommand.java.

References org.bukkit.util.StringUtil.copyPartialMatches().


The documentation for this class was generated from the following file: