java.lang.Object
rocks.gravili.notquests.spigot.structs.conditions.Condition
Direct Known Subclasses:
ActiveQuestCondition, CompletedObjectiveCondition, CompletedQuestCondition, ConditionCondition, MoneyCondition, PermissionCondition, QuestPointsCondition, TownyNationNameCondition, TownyNationTownCountCondition, TownyTownPlotCountCondition, TownyTownResidentCountCondition, UltimateClansClanLevelCondition, WorldTimeCondition

public abstract class Condition extends Object
  • Field Details

  • Constructor Details

    • Condition

      public Condition(NotQuests main)
  • Method Details

    • setProgressNeeded

      public void setProgressNeeded(long progressNeeded)
    • setQuest

      public void setQuest(Quest quest)
    • setObjective

      public void setObjective(Objective objective)
    • getConditionType

      public final String getConditionType()
    • getProgressNeeded

      public final long getProgressNeeded()
    • getQuest

      public final Quest getQuest()
    • getObjective

      public final Objective getObjective()
    • getConditionName

      public final String getConditionName()
    • setConditionName

      public void setConditionName(String conditionName)
    • check

      public abstract String check(QuestPlayer questPlayer, boolean enforce)
      Returns:
      String if the condition is not fulfilled. Empty string if the condition is fulfilled. The String should say the still-required condition.
    • getConditionDescription

      public abstract String getConditionDescription()
    • save

      public abstract void save(org.bukkit.configuration.file.FileConfiguration configuration, String initialPath)
    • load

      public abstract void load(org.bukkit.configuration.file.FileConfiguration configuration, String initialPath)