java.lang.Object
org.betonquest.betonquest.api.ForceSyncHandler<Void>
org.betonquest.betonquest.api.QuestEvent
rocks.gravili.notquests.spigot.managers.integrations.betonquest.events.BQAbortQuestEvent

public class BQAbortQuestEvent extends org.betonquest.betonquest.api.QuestEvent
  • Field Summary

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

    conditions, instruction, persistent, staticness
  • Constructor Summary

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

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

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

    fire, getFullId

    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

    • BQAbortQuestEvent

      public BQAbortQuestEvent(org.betonquest.betonquest.Instruction instruction) throws org.betonquest.betonquest.exceptions.InstructionParseException
      Creates new instance of the event. The event should parse instruction string without doing anything else. If anything goes wrong, throw InstructionParseException with error message describing the problem.
      Parameters:
      instruction - the Instruction object representing this event; you need to extract all required data from it and throw InstructionParseException if there is anything wrong
      Throws:
      org.betonquest.betonquest.exceptions.InstructionParseException - when the is an error in the syntax or argument parsing
  • Method Details

    • execute

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