|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Area
Nested Class Summary | |
---|---|
static class |
Area.AreaRelationship
|
Method Summary | |
---|---|
int |
compareNameTo(Area a)
Returns an alphabetic comparison based on the area name. |
int |
compareTo(Area a)
Returns an alphabetic comparison based on the area ID. |
java.lang.String |
getAbsoluteMessage(Flag flag)
Gets the message associated with a player flag. |
java.lang.String |
getAbsoluteMessage(Flag flag,
java.lang.String playerName)
Gets the message associated with a player flag and parses {AreaType}, {AreaName}, {Owner}, {World}, and {Player}. |
java.util.Collection<org.bukkit.permissions.Permission> |
getAbsolutePermissionTrust(Flag flag)
Gets a collection of trusted permissions not including those trusted in world defaults |
java.util.Collection<org.bukkit.OfflinePlayer> |
getAbsolutePlayerTrust(Flag flag)
Gets a list of trusted players not including those trusted in world defaults |
java.lang.String |
getAbsoluteRawMessage(Flag flag)
Gets the message associated with a player flag and returns it as-is. |
java.lang.Boolean |
getAbsoluteState(Flag flag)
Gets the absolute state of the flag for this area. |
AreaPlugin |
getAreaPlugin()
Gets the plugin that defines this area. |
java.lang.String |
getId()
Gets the area plugin's ID for this area. |
java.lang.String |
getMessage(Flag flag)
Gets the message associated with a player flag. |
java.lang.String |
getMessage(Flag flag,
java.lang.String playerName)
Gets the message associated with a player flag and parses {AreaType}, {AreaName}, {Owner}, {World}, and {Player}. |
java.lang.String |
getName()
Returns the name of the area defined in the area plugin. |
java.util.Collection<org.bukkit.permissions.Permission> |
getPermissionTrust(Flag flag)
Gets a collection of trusted permissions including those trusted in world defaults |
java.util.Collection<org.bukkit.OfflinePlayer> |
getPlayerTrust(Flag flag)
Gets a list of trusted players including those trusted in the world defaults Wilderness and Default areas will be absolute with this method. |
java.lang.String |
getRawMessage(Flag flag)
Gets the message associated with a player flag and returns it as-is. |
Area.AreaRelationship |
getRelationship(Area area)
Returns the relationship of the provided area to the existing area This is true such that this is a (PARENT, CHILD, ETC.) of the provided area. |
boolean |
getState(Flag flag)
Gets the state of the flag for this area or the default flag if not set. |
org.bukkit.World |
getWorld()
Gets the world in which area resides. |
boolean |
hasBundlePermission(org.bukkit.permissions.Permissible permission)
Checks the players permission to set bundles at this location |
boolean |
hasFlagPermission(org.bukkit.permissions.Permissible permission)
Checks the players permission to set flags at this location. |
boolean |
hasTrust(Flag flag,
org.bukkit.entity.Player player)
Gets if the provided player is the area owner, has explicit trust, or has permission trust. |
boolean |
isArea()
Validates the underlying object from the area plugin is not null. |
boolean |
removeTrust(Flag flag,
org.bukkit.OfflinePlayer trustee,
org.bukkit.command.CommandSender sender)
Removes a player from the trust. |
boolean |
removeTrust(Flag flag,
org.bukkit.permissions.Permission permission,
org.bukkit.command.CommandSender sender)
Removes a permission from the trust. |
boolean |
setMessage(Flag flag,
java.lang.String message,
org.bukkit.command.CommandSender sender)
Sets or removes the message associated with a player flag. |
boolean |
setState(Flag flag,
java.lang.Boolean state,
org.bukkit.command.CommandSender sender)
Sets the state of the flag for this area. |
boolean |
setTrust(Flag flag,
org.bukkit.OfflinePlayer trustee,
org.bukkit.command.CommandSender sender)
Adds player to a the trust. |
boolean |
setTrust(Flag flag,
org.bukkit.permissions.Permission permission,
org.bukkit.command.CommandSender sender)
Adds permission to a the trust. |
Method Detail |
---|
AreaPlugin getAreaPlugin()
boolean isArea()
java.lang.String getId()
InvalidAreaException
java.lang.String getName()
InvalidAreaException
org.bukkit.World getWorld()
InvalidAreaException
boolean getState(@Nonnull Flag flag)
flag
- The flag to retrieve the state for.
java.lang.Boolean getAbsoluteState(@Nonnull Flag flag)
flag
- The flag to retrieve the state for.
boolean setState(@Nonnull Flag flag, @Nullable java.lang.Boolean state, @Nullable org.bukkit.command.CommandSender sender)
flag
- The flag to set the state for.state
- The state to set or null to remove.sender
- The command sender for event call and economy transactions.
May be null if no associated player or console.
java.lang.String getMessage(@Nonnull Flag flag)
flag
- The flag to retrieve the message for.
java.lang.String getAbsoluteMessage(@Nonnull Flag flag)
flag
- The flag to retrieve the message for.
java.lang.String getMessage(@Nonnull Flag flag, @Nonnull java.lang.String playerName)
flag
- The flag to retrieve the message for.playerName
- The player who's name will be inserted into the message.
java.lang.String getAbsoluteMessage(@Nonnull Flag flag, @Nonnull java.lang.String playerName)
flag
- The flag to retrieve the message for.playerName
- The player who's name will be inserted into the message.
java.lang.String getRawMessage(@Nonnull Flag flag)
flag
- The flag to retrieve the message for.
java.lang.String getAbsoluteRawMessage(@Nonnull Flag flag)
flag
- The flag to retrieve the message for.
boolean setMessage(@Nonnull Flag flag, @Nullable java.lang.String message, @Nullable org.bukkit.command.CommandSender sender)
flag
- The flag to set the message for.message
- The message to set, null to remove.sender
- The command sender for event call and economy transactions.
May be null if no associated player or console.
java.util.Collection<org.bukkit.OfflinePlayer> getPlayerTrust(@Nonnull Flag flag)
flag
- The flag to retrieve the trust list for.
java.util.Collection<org.bukkit.OfflinePlayer> getAbsolutePlayerTrust(@Nonnull Flag flag)
flag
- The flag to retrieve the trust list for.
java.util.Collection<org.bukkit.permissions.Permission> getPermissionTrust(@Nonnull Flag flag)
flag
- The flag to retrieve the trust for.
java.util.Collection<org.bukkit.permissions.Permission> getAbsolutePermissionTrust(@Nonnull Flag flag)
flag
- The flag to retrieve the trust for.
boolean setTrust(@Nonnull Flag flag, @Nonnull org.bukkit.OfflinePlayer trustee, @Nullable org.bukkit.command.CommandSender sender)
flag
- The flag to change trust for.trustee
- The player being trustedsender
- The command sender for event call and economy transactions.
May be null if no associated player or console.
boolean setTrust(@Nonnull Flag flag, @Nonnull org.bukkit.permissions.Permission permission, @Nullable org.bukkit.command.CommandSender sender)
flag
- The flag to change trust for.permission
- The permission being trustedsender
- The command sender for event call and economy transactions.
May be null if no associated player or console.
boolean removeTrust(@Nonnull Flag flag, @Nonnull org.bukkit.OfflinePlayer trustee, @Nullable org.bukkit.command.CommandSender sender)
flag
- The flag to change trust for.trustee
- The player being distrustedsender
- The command sender for event call and economy transactions.
May be null if no associated player or console.
boolean removeTrust(@Nonnull Flag flag, @Nonnull org.bukkit.permissions.Permission permission, @Nullable org.bukkit.command.CommandSender sender)
flag
- The flag to change trust for.permission
- The permission being distrustedsender
- The command sender for event call and economy transactions.
May be null if no associated player or console.
boolean hasTrust(@Nonnull Flag flag, @Nonnull org.bukkit.entity.Player player)
flag
- The flag to check the trust for.player
- The player to check trust for.
boolean hasFlagPermission(@Nonnull org.bukkit.permissions.Permissible permission)
permission
- The player to check.
boolean hasBundlePermission(@Nonnull org.bukkit.permissions.Permissible permission)
permission
- The player to check.
Area.AreaRelationship getRelationship(@Nonnull Area area)
area
- the area to check the relationship.
int compareTo(@Nonnull Area a)
compareTo
in interface java.lang.Comparable<Area>
int compareNameTo(@Nonnull Area a)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |