mirror of
https://github.com/Auxilor/EcoQuests.git
synced 2026-01-06 15:52:00 +00:00
Added meetsStartConditions
This commit is contained in:
@@ -140,9 +140,12 @@ class Quest(
|
||||
return player.profile.read(hasCompletedKey)
|
||||
}
|
||||
|
||||
fun shouldStart(player: Player): Boolean {
|
||||
fun meetsStartConditions(player: Player): Boolean {
|
||||
return startConditions.areMet(player, EmptyProvidedHolder)
|
||||
&& !hasStarted(player)
|
||||
}
|
||||
|
||||
fun shouldStart(player: Player): Boolean {
|
||||
return meetsStartConditions(player) && !hasStarted(player)
|
||||
}
|
||||
|
||||
fun hasStarted(player: Player): Boolean {
|
||||
|
||||
Reference in New Issue
Block a user