Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.OfflinePlayer Interface Reference
+ Inheritance diagram for org.bukkit.OfflinePlayer:
+ Collaboration diagram for org.bukkit.OfflinePlayer:

Public Member Functions

boolean isOnline ()
 Checks if this player is currently online.
 
String getName ()
 Returns the name of this player.
 
boolean isBanned ()
 Checks if this player is banned or not.
 
void setBanned (boolean banned)
 Bans or unbans this player.
 
boolean isWhitelisted ()
 Checks if this player is whitelisted or not.
 
void setWhitelisted (boolean value)
 Sets if this player is whitelisted or not.
 
Player getPlayer ()
 Gets a Player object that this represents, if there is one.
 
long getFirstPlayed ()
 Gets the first date and time that this player was witnessed on this server.
 
long getLastPlayed ()
 Gets the last date and time that this player was witnessed on this server.
 
boolean hasPlayedBefore ()
 Checks if this player has played on this server before.
 
Location getBedSpawnLocation ()
 Gets the Location where the player will spawn at their bed, null if they have not slept in one or their current bed spawn is invalid.
 
- Public Member Functions inherited from org.bukkit.permissions.ServerOperator
boolean isOp ()
 Checks if this object is a server operator.
 
void setOp (boolean value)
 Sets the operator status of this object.
 
- Public Member Functions inherited from org.bukkit.entity.AnimalTamer
String getName ()
 This is the name of the specified AnimalTamer.
 
- Public Member Functions inherited from org.bukkit.configuration.serialization.ConfigurationSerializable
Map< String, Object > serialize ()
 Creates a Map representation of this class.
 

Detailed Description

Definition at line 8 of file OfflinePlayer.java.

Member Function Documentation

Location org.bukkit.OfflinePlayer.getBedSpawnLocation ( )

Gets the Location where the player will spawn at their bed, null if they have not slept in one or their current bed spawn is invalid.

Returns
Bed Spawn Location if bed exists, otherwise null.
long org.bukkit.OfflinePlayer.getFirstPlayed ( )

Gets the first date and time that this player was witnessed on this server.

If the player has never played before, this will return 0. Otherwise, it will be the amount of milliseconds since midnight, January 1, 1970 UTC.

Returns
Date of first log-in for this player, or 0
long org.bukkit.OfflinePlayer.getLastPlayed ( )

Gets the last date and time that this player was witnessed on this server.

If the player has never played before, this will return 0. Otherwise, it will be the amount of milliseconds since midnight, January 1, 1970 UTC.

Returns
Date of last log-in for this player, or 0
String org.bukkit.OfflinePlayer.getName ( )

Returns the name of this player.

Returns
Player name
Player org.bukkit.OfflinePlayer.getPlayer ( )

Gets a Player object that this represents, if there is one.

If the player is online, this will return that player. Otherwise, it will return null.

Returns
Online player
boolean org.bukkit.OfflinePlayer.hasPlayedBefore ( )

Checks if this player has played on this server before.

Returns
True if the player has played before, otherwise false
boolean org.bukkit.OfflinePlayer.isBanned ( )

Checks if this player is banned or not.

Returns
true if banned, otherwise false
boolean org.bukkit.OfflinePlayer.isOnline ( )

Checks if this player is currently online.

Returns
true if they are online
boolean org.bukkit.OfflinePlayer.isWhitelisted ( )

Checks if this player is whitelisted or not.

Returns
true if whitelisted
void org.bukkit.OfflinePlayer.setBanned ( boolean  banned)

Bans or unbans this player.

Parameters
bannedtrue if banned

Referenced by org.bukkit.command.defaults.BanCommand.execute(), and org.bukkit.command.defaults.PardonCommand.execute().

void org.bukkit.OfflinePlayer.setWhitelisted ( boolean  value)

Sets if this player is whitelisted or not.

Parameters
valuetrue if whitelisted

Referenced by org.bukkit.command.defaults.WhitelistCommand.execute().


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