![]() |
Bukkit
1.4.7-R1.0
|
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. | |
Definition at line 8 of file OfflinePlayer.java.
| Location org.bukkit.OfflinePlayer.getBedSpawnLocation | ( | ) |
| 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.
| 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.
| String org.bukkit.OfflinePlayer.getName | ( | ) |
Returns the name of this player.
| 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.
| boolean org.bukkit.OfflinePlayer.hasPlayedBefore | ( | ) |
Checks if this player has played on this server before.
| boolean org.bukkit.OfflinePlayer.isBanned | ( | ) |
Checks if this player is banned or not.
| boolean org.bukkit.OfflinePlayer.isOnline | ( | ) |
Checks if this player is currently online.
| boolean org.bukkit.OfflinePlayer.isWhitelisted | ( | ) |
Checks if this player is whitelisted or not.
| void org.bukkit.OfflinePlayer.setBanned | ( | boolean | banned | ) |
Bans or unbans this player.
| banned | true 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.
| value | true if whitelisted |
Referenced by org.bukkit.command.defaults.WhitelistCommand.execute().