Class PlayerChangeObjectInfoEvent

All Implemented Interfaces:
Cancellable

public final class PlayerChangeObjectInfoEvent extends PlayerObjectEvent
Called when the info ID of an object changes. For example, this happens if someone locks (infoID 1) or unlocks (infoID 0) a door
  • Method Details

    • getOldInfoID

      public long getOldInfoID()
      Gets the old object info.
      Returns:
      the old info ID.
    • getNewInfoID

      public long getNewInfoID()
      Gets the new object info.
      Returns:
      the new info ID.
    • setNewInfoID

      public void setNewInfoID(long infoID)
    • skipValidation

      public void skipValidation(boolean set)
      If true, the game no longer checks whether or not the player is allowed to perform this action. For example, by default the player is only allowed to lock/unlock doors he owns, but if "skipValidation" is true, the game skips this check
      Parameters:
      set - true to skip the checks whether or not the player is actually allowed to perform this action