java.lang.Object
org.betonquest.betonquest.api.Objective
net.playavalon.mythicdungeons.compatibility.betonquest.objectives.CompleteDungeonObjective
All Implemented Interfaces:
org.bukkit.event.Listener

public class CompleteDungeonObjective extends org.betonquest.betonquest.api.Objective implements org.bukkit.event.Listener
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.betonquest.betonquest.api.Objective

    org.betonquest.betonquest.api.Objective.ObjectiveState
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
     
    getProperty(String name, org.betonquest.betonquest.api.profiles.Profile profile)
     
    void
     
    void
     
    void
     

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

    cancelObjectiveForPlayer, checkConditions, close, completeObjective, completeObjectiveForPlayer, containsPlayer, createObjectiveForPlayer, getData, getDefaultDataInstruction, getLabel, isGlobal, newPlayer, pauseObjectiveForPlayer, resumeObjectiveForPlayer, setLabel, start, startObjective, stop, stopObjective

    Methods inherited from class java.lang.Object

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

    • CompleteDungeonObjective

      public CompleteDungeonObjective(org.betonquest.betonquest.Instruction instruction) throws org.betonquest.betonquest.exceptions.InstructionParseException

      Creates new instance of the objective. The objective should parse instruction string at this point and extract all the data from it.

      Do not register listeners here! There is a start() method for it.
      Parameters:
      instruction - Instruction object representing the objective; you need to extract all required information from it
      Throws:
      org.betonquest.betonquest.exceptions.InstructionParseException - if the syntax is wrong or any error happens while parsing
  • Method Details

    • onDungeonFinish

      public void onDungeonFinish(PlayerFinishDungeonEvent event)
    • start

      public void start()
      Specified by:
      start in class org.betonquest.betonquest.api.Objective
    • stop

      public void stop()
      Specified by:
      stop in class org.betonquest.betonquest.api.Objective
    • getDefaultDataInstruction

      public String getDefaultDataInstruction()
      Specified by:
      getDefaultDataInstruction in class org.betonquest.betonquest.api.Objective
    • getProperty

      public String getProperty(String name, org.betonquest.betonquest.api.profiles.Profile profile)
      Specified by:
      getProperty in class org.betonquest.betonquest.api.Objective