public class LocalityOwnership
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
LocalityOwnership(Locality locality) |
Modifier and Type | Method and Description |
---|---|
void |
addAccess(FPlayer fplayer)
Add a player to the owner access list.
|
java.util.List<FPlayer> |
getAccess()
Get list of owners at this location.
|
boolean |
hasAccess(FPlayer fplayer)
Check if a player is on the owner list.
|
boolean |
isOwned()
Returns true if this location is owned.
|
void |
removeAccess(FPlayer fplayer)
Remove a player from the owner access list.
|
void |
removeAll()
Remove all owners at this location.
|
protected LocalityOwnership(Locality locality)
public void removeAll()
public java.util.List<FPlayer> getAccess()
public boolean isOwned()
public void addAccess(FPlayer fplayer)
fplayer
- the player to add.public boolean hasAccess(FPlayer fplayer)
fplayer
- the fplayer to check.public void removeAccess(FPlayer fplayer)
fplayer
- the player to remove.