2011-09-03 00:48:41 +01:00
|
|
|
package org.bukkit;
|
|
|
|
|
|
|
|
import org.bukkit.permissions.ServerOperator;
|
|
|
|
|
|
|
|
public interface OfflinePlayer extends ServerOperator {
|
|
|
|
/**
|
|
|
|
* Checks if this player is currently online
|
|
|
|
*
|
|
|
|
* @return true if they are online
|
|
|
|
*/
|
|
|
|
public boolean isOnline();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the name of this player
|
|
|
|
*
|
|
|
|
* @return Player name
|
|
|
|
*/
|
|
|
|
public String getName();
|
2011-09-03 02:13:37 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Checks if this player is banned or not
|
|
|
|
*
|
|
|
|
* @return true if banned, otherwise false
|
|
|
|
*/
|
|
|
|
public boolean isBanned();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bans or unbans this player
|
|
|
|
*
|
|
|
|
* @param banned true if banned
|
|
|
|
*/
|
|
|
|
public void setBanned(boolean banned);
|
2011-09-03 04:37:23 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Checks if this player is whitelisted or not
|
|
|
|
*
|
|
|
|
* @return true if whitelisted
|
|
|
|
*/
|
|
|
|
public boolean isWhitelisted();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets if this player is whitelisted or not
|
|
|
|
*
|
|
|
|
* @param value true if whitelisted
|
|
|
|
*/
|
|
|
|
public void setWhitelisted(boolean value);
|
2011-09-03 00:48:41 +01:00
|
|
|
}
|