Package games.stendhal.server.actions
Class ItemAccessPermissions
java.lang.Object
games.stendhal.server.actions.ItemAccessPermissions
Utilities for checking permissions to access items.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanmayAccessContainedEntity(Player player, Entity entity) Check if a player may access the location of a contained item.
-
Constructor Details
-
ItemAccessPermissions
public ItemAccessPermissions()
-
-
Method Details
-
mayAccessContainedEntity
Check if a player may access the location of a contained item. Note that access rights to the item itself is not checked.- Parameters:
player-entity-- Returns:
trueif the player may access items in the location of item
-