Class QuestPlayer
java.lang.Object
rocks.gravili.notquests.spigot.structs.QuestPlayer
The QuestPlayer Object is initialized for every player, once they join the server - loading its data from the database.
It contains all kinds of player data for that player, like active quests, completed quests and quest points.
Completed Quests are saved too, for things like Quest History (Future feature), or handling the maxAccepts per quest /
the quest cooldown.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddActiveQuest(ActiveQuest quest, boolean triggerAcceptQuestTrigger, boolean sendQuestInfo) voidaddCompletedQuest(CompletedQuest completedQuest) voidaddQuestPoints(long questPointsToAdd, boolean notifyPlayer) voidfailQuest(ActiveQuest activeQuestToFail) voidforceActiveQuestCompleted(ActiveQuest activeQuest) forceAddActiveQuest(ActiveQuest quest, boolean triggerAcceptQuestTrigger) final ActiveQuestgetActiveQuest(Quest quest) final ArrayList<ActiveQuest>final ArrayList<CompletedQuest>final org.bukkit.entity.Playerfinal longfinal UUIDgetUUID()voidgiveReward(Quest quest) final booleanhasAcceptedQuest(Quest quest) voidnotifyActiveQuestCompleted(ActiveQuest activeQuest) voidvoidremoveQuestPoints(long questPointsToRemove, boolean notifyPlayer) voidsendDebugMessage(String message) voidsendMessage(String message) voidsetQuestPoints(long newQuestPoints, boolean notifyPlayer)
-
Constructor Details
-
QuestPlayer
-
-
Method Details
-
addActiveQuest
public String addActiveQuest(ActiveQuest quest, boolean triggerAcceptQuestTrigger, boolean sendQuestInfo) -
forceAddActiveQuest
-
getUUID
-
getActiveQuests
-
giveReward
-
sendMessage
-
sendDebugMessage
-
getCompletedQuests
-
forceActiveQuestCompleted
-
notifyActiveQuestCompleted
-
setQuestPoints
public void setQuestPoints(long newQuestPoints, boolean notifyPlayer) -
addQuestPoints
public void addQuestPoints(long questPointsToAdd, boolean notifyPlayer) -
removeQuestPoints
public void removeQuestPoints(long questPointsToRemove, boolean notifyPlayer) -
getQuestPoints
public final long getQuestPoints() -
removeCompletedQuests
public void removeCompletedQuests() -
addCompletedQuest
-
failQuest
-
getActiveQuestsCopy
-
hasAcceptedQuest
-
getPlayer
public final org.bukkit.entity.Player getPlayer() -
getActiveQuest
-