Swap ammo mould over to ContentAPI
This commit is contained in:
@@ -1265,6 +1265,13 @@ fun setQuestStage(player: Player, quest: String, stage: Int) {
|
||||
player.questRepository.setStage(QuestRepository.getQuests()[quest]!!, stage)
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a quest is complete
|
||||
*/
|
||||
fun isQuestComplete(player: Player, quest: String): Boolean {
|
||||
return player.questRepository.getStage(quest) == 100
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets a scenery definition from the given ID
|
||||
* @param id the ID of the scenery to get the definition for.
|
||||
|
||||
Reference in New Issue
Block a user