Class ItemAccessPermissions

java.lang.Object
games.stendhal.server.actions.ItemAccessPermissions

public class ItemAccessPermissions extends Object
Utilities for checking permissions to access items.
  • Constructor Details

    • ItemAccessPermissions

      public ItemAccessPermissions()
  • Method Details

    • mayAccessContainedEntity

      public static boolean mayAccessContainedEntity(Player player, Entity entity)
      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