Class BQActiveQuestObjectiveCompleted

java.lang.Object
org.betonquest.betonquest.api.ForceSyncHandler<Boolean>
org.betonquest.betonquest.api.Condition
rocks.gravili.notquests.paper.managers.integrations.betonquest.events.BQActiveQuestObjectiveCompleted

public class BQActiveQuestObjectiveCompleted extends org.betonquest.betonquest.api.Condition
  • Field Summary

    Fields inherited from class org.betonquest.betonquest.api.Condition

    instruction, persistent, staticness
  • Constructor Summary

    Constructors
    Constructor
    Description
    BQActiveQuestObjectiveCompleted(org.betonquest.betonquest.Instruction instruction)
    Creates new instance of the condition.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Boolean
    execute(String playerID)
     

    Methods inherited from class org.betonquest.betonquest.api.Condition

    isPersistent, isStatic

    Methods inherited from class org.betonquest.betonquest.api.ForceSyncHandler

    handle

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BQActiveQuestObjectiveCompleted

      public BQActiveQuestObjectiveCompleted(org.betonquest.betonquest.Instruction instruction) throws org.betonquest.betonquest.exceptions.InstructionParseException
      Creates new instance of the condition. The condition should parse instruction string at this point and extract all the data from it. If anything goes wrong, throw InstructionParseException with an error message describing the problem.
      Parameters:
      instruction - the Instruction object; you can get one from ID instance with ID.generateInstruction() or create it from an instruction string
      Throws:
      org.betonquest.betonquest.exceptions.InstructionParseException
  • Method Details

    • execute

      protected Boolean execute(String playerID) throws org.betonquest.betonquest.exceptions.QuestRuntimeException
      Specified by:
      execute in class org.betonquest.betonquest.api.Condition
      Throws:
      org.betonquest.betonquest.exceptions.QuestRuntimeException