Class TimeReachedCondition

java.lang.Object
games.stendhal.server.entity.npc.condition.TimeReachedCondition
All Implemented Interfaces:
ChatCondition, PreTransitionCondition

@Dev(category=TIME, label="Time?") public class TimeReachedCondition extends Object implements ChatCondition
Check if current system time reached a timestamp stored in a quest slot. If the quest slot isn't in the expected format, returns true
Author:
omero
See Also:
  • Constructor Details

    • TimeReachedCondition

      public TimeReachedCondition(String questname)
      Creates a new TimeReachedCondition for checking wether or not a timestamp in quest slot has been reached
      Parameters:
      questname - name of the quest slot to check
    • TimeReachedCondition

      @Dev public TimeReachedCondition(String questname, int index)
      Creates a new TimeReachedCondition for checking wether or not a timestamp in quest slot has been reached
      Parameters:
      questname - name of quest slot to check
      index - index of sub state
  • Method Details