public class PlayerQuestConfigurator extends PlayerQuestConfigurationUtils
Constructor and Description |
---|
PlayerQuestConfigurator() |
Modifier and Type | Method and Description |
---|---|
static void |
addQuestCompletions(org.bukkit.entity.Player player,
java.lang.String quest)
Increases the quest completions by 1.
|
static int |
getQuestCompletions(org.bukkit.entity.Player player,
java.lang.String quest) |
static long |
getQuestCooldown(org.bukkit.entity.Player player,
java.lang.String quest) |
static int |
getQuestPhase(org.bukkit.entity.Player player,
java.lang.String quest) |
static long |
getQuestPhaseRequirementValue(org.bukkit.entity.Player player,
java.lang.String quest,
int phase,
int requirement) |
static boolean |
isQuestCompleted(org.bukkit.entity.Player player,
java.lang.String quest) |
static void |
setQuestCooldown(org.bukkit.entity.Player player,
java.lang.String quest)
Updates the cooldown of the quest to now.
|
static void |
setQuestPhase(org.bukkit.entity.Player player,
java.lang.String quest,
int phase) |
static void |
setQuestPhaseRequirementValue(org.bukkit.entity.Player player,
java.lang.String quest,
int phase,
int requirement,
long value) |
playerQuestConfigGetInt, playerQuestConfigGetLong, playerQuestConfigSet
public static int getQuestPhase(org.bukkit.entity.Player player, java.lang.String quest)
player
- The player that owns the config file.quest
- The quest that the config belongs to.public static void setQuestPhase(org.bukkit.entity.Player player, java.lang.String quest, int phase)
player
- The player that owns the config file.quest
- The quest that the config belongs to.phase
- The new phase of the quest.public static long getQuestPhaseRequirementValue(org.bukkit.entity.Player player, java.lang.String quest, int phase, int requirement)
player
- The player that owns the config file.quest
- The quest that the config belongs to.phase
- The phase of the quest.requirement
- The requirement of the phase of the quest.public static void setQuestPhaseRequirementValue(org.bukkit.entity.Player player, java.lang.String quest, int phase, int requirement, long value)
player
- The player that owns the config file.quest
- The quest that the config belongs to.phase
- The phase of the quest.requirement
- The requirement of the phase of the quest.value
- The new stored value for the requirement.public static int getQuestCompletions(org.bukkit.entity.Player player, java.lang.String quest)
player
- The player that owns the config file.quest
- The quest that the config belongs to.public static void addQuestCompletions(org.bukkit.entity.Player player, java.lang.String quest)
player
- The player that owns the config file.quest
- The quest that the config belongs to.public static boolean isQuestCompleted(org.bukkit.entity.Player player, java.lang.String quest)
player
- The player that owns the config file.quest
- The quest that the config belongs to.public static long getQuestCooldown(org.bukkit.entity.Player player, java.lang.String quest)
player
- The player that owns the config file.quest
- The quest that the config belongs to.public static void setQuestCooldown(org.bukkit.entity.Player player, java.lang.String quest)
player
- The player that owns the config file.quest
- The quest that the config belongs to.