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
-
Method Summary
Modifier and TypeMethodDescriptionaddActiveQuest
(ActiveQuest quest, boolean triggerAcceptQuestTrigger, boolean sendQuestInfo) void
addCompletedQuest
(CompletedQuest completedQuest) void
addQuestPoints
(long questPointsToAdd, boolean notifyPlayer) void
failQuest
(ActiveQuest activeQuestToFail) void
forceActiveQuestCompleted
(ActiveQuest activeQuest) forceAddActiveQuest
(ActiveQuest quest, boolean triggerAcceptQuestTrigger) final ActiveQuest
getActiveQuest
(Quest quest) final ArrayList<ActiveQuest>
final ArrayList<CompletedQuest>
final org.bukkit.entity.Player
final long
final UUID
getUUID()
void
giveReward
(Quest quest) final boolean
hasAcceptedQuest
(Quest quest) void
notifyActiveQuestCompleted
(ActiveQuest activeQuest) void
void
removeQuestPoints
(long questPointsToRemove, boolean notifyPlayer) void
sendDebugMessage
(String message) void
sendMessage
(String message) void
setQuestPoints
(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
-