Package games.stendhal.server.actions
Class ItemAccessPermissions
java.lang.Object
games.stendhal.server.actions.ItemAccessPermissions
Utilities for checking permissions to access items.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
mayAccessContainedEntity(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:
true
if the player may access items in the location of item
-