Interface OAPlayer
public interface OAPlayer
-
Method Summary
Modifier and TypeMethodDescriptionGet all blocks destroy stats of the playergetBlockDestroy(OABlock block) Get block destroy stats of the playergetName()Get the nameGet the playerUUIDbooleanHave the player alerts messages enabled?booleanIs the player whitelisted?voidsetAlertsOn(boolean alerts) Set alerts on/offvoidsetBlockDestroy(OABlockDestroy blockDestroy) Set/update a block destroy of the playervoidsetWhitelisted(boolean whitelisted) Add or remove the player from the whitelist
-
Method Details
-
getPlayerUUID
UUID getPlayerUUID()Get the playerUUID- Returns:
- Returns the
UUIDof the player
-
getName
String getName()Get the name- Returns:
- Returns the name of the player
-
haveAlertsOn
boolean haveAlertsOn()Have the player alerts messages enabled?- Returns:
- Returns true if the player have alerts on
-
setAlertsOn
void setAlertsOn(boolean alerts) Set alerts on/off- Parameters:
alerts- True to enable alerts
-
isWhitelisted
boolean isWhitelisted()Is the player whitelisted?- Returns:
- Returns true if the player is whitelisted
-
setWhitelisted
void setWhitelisted(boolean whitelisted) Add or remove the player from the whitelist- Parameters:
whitelisted- True to whitelist
-
getBlockDestroy
Get block destroy stats of the player- Parameters:
block- The block- Returns:
- Returns the
OABlockDestroyinstance
-
setBlockDestroy
Set/update a block destroy of the player- Parameters:
blockDestroy- TheOABlockDestroyto set/update
-
getAllBlockDestroy
Set<OABlockDestroy> getAllBlockDestroy()Get all blocks destroy stats of the player- Returns:
- Returns a set of
OABlockDestroy
-