Interface OAPlayer
-
public interface OAPlayer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<OABlockDestroy>getAllBlockDestroy()Get all blocks destroy stats of the playerOABlockDestroygetBlockDestroy(OABlock block)Get block destroy stats of the playerStringgetName()Get the nameUUIDgetPlayerUUID()Get the playerUUIDbooleanhaveAlertsOn()Have the player alerts messages enabled?booleanisWhitelisted()Is 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 Detail
-
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
OABlockDestroy getBlockDestroy(OABlock block)
Get block destroy stats of the player- Parameters:
block- The block- Returns:
- Returns the
OABlockDestroyinstance
-
setBlockDestroy
void setBlockDestroy(OABlockDestroy blockDestroy)
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
-
-