Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package org.bukkit;
2
3import org.bukkit.permissions.ServerOperator;
4
5public interface OfflinePlayer extends ServerOperator {
6 /**
7 * Checks if this player is currently online
8 *
9 * @return true if they are online
10 */
11 public boolean isOnline();
12
13 /**
14 * Returns the name of this player
15 *
16 * @return Player name
17 */
18 public String getName();
19
20 /**
21 * Checks if this player is banned or not
22 *
23 * @return true if banned, otherwise false
24 */
25 public boolean isBanned();
26
27 /**
28 * Bans or unbans this player
29 *
30 * @param banned true if banned
31 */
32 public void setBanned(boolean banned);
33
34 /**
35 * Checks if this player is whitelisted or not
36 *
37 * @return true if whitelisted
38 */
39 public boolean isWhitelisted();
40
41 /**
42 * Sets if this player is whitelisted or not
43 *
44 * @param value true if whitelisted
45 */
46 public void setWhitelisted(boolean value);
47}