Class Condition
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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String
check
(QuestPlayer questPlayer, boolean enforce) abstract String
final String
final String
final Objective
final long
final Quest
getQuest()
abstract void
abstract void
void
setConditionName
(String conditionName) void
setObjective
(Objective objective) void
setProgressNeeded
(long progressNeeded) void
-
Field Details
-
main
-
-
Constructor Details
-
Condition
-
-
Method Details
-
setProgressNeeded
public void setProgressNeeded(long progressNeeded) -
setQuest
-
setObjective
-
getConditionType
-
getProgressNeeded
public final long getProgressNeeded() -
getQuest
-
getObjective
-
getConditionName
-
setConditionName
-
check
- Returns:
- String if the condition is not fulfilled. Empty string if the condition is fulfilled. The String should say the still-required condition.
-
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)
-