All Implemented Interfaces:
Killer, StorableEntity, Cloneable, Iterable<String>, Serializable

public class RentedSign extends Sign implements StorableEntity
A sign rented by a player for a fixed amount of time.
Author:
hendrik
  • Field Details

  • Constructor Details

    • RentedSign

      public RentedSign(Player renter, String text)
      Creates a RentedSign.
      Parameters:
      renter - player who rented this sign
      text - text to display on this sign
    • RentedSign

      public RentedSign(RPObject rpobject)
      Creates a RentedSign based on an existing RPObject. This is just for loading a sign from the database, use the other constructors.
      Parameters:
      rpobject -
  • Method Details

    • generateRPClass

      public static void generateRPClass()
    • getRenter

      public String getRenter()
      returns the owner.
      Returns:
      name of owner
    • getTimestamp

      public long getTimestamp()
      Returns the timestamp when this entity was created.
      Returns:
      timestamp in milliseconds
    • describe

      public String describe()
      Description copied from class: Entity
      Describes the entity (if a players looks at it).
      Overrides:
      describe in class Sign
      Returns:
      description from the players point of view