aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/cowtipper/cowlection/handler
diff options
context:
space:
mode:
authorCow <cow@volloeko.de>2020-07-31 23:29:45 +0200
committerCow <cow@volloeko.de>2020-07-31 23:29:45 +0200
commitf8659db5387750494b02c6f293c415c43a5a51c7 (patch)
tree63248ae7400773073ee49054cb2d309067ad6801 /src/main/java/de/cowtipper/cowlection/handler
parentd6ec894d8bbb4c90e7032240da3fe09920f52f54 (diff)
downloadCowlection-f8659db5387750494b02c6f293c415c43a5a51c7.tar.gz
Cowlection-f8659db5387750494b02c6f293c415c43a5a51c7.tar.bz2
Cowlection-f8659db5387750494b02c6f293c415c43a5a51c7.zip
Dungeon performance tracker: added Class Milestones
Diffstat (limited to 'src/main/java/de/cowtipper/cowlection/handler')
-rw-r--r--src/main/java/de/cowtipper/cowlection/handler/DungeonCache.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/de/cowtipper/cowlection/handler/DungeonCache.java b/src/main/java/de/cowtipper/cowlection/handler/DungeonCache.java
index 5c868c9..3df9048 100644
--- a/src/main/java/de/cowtipper/cowlection/handler/DungeonCache.java
+++ b/src/main/java/de/cowtipper/cowlection/handler/DungeonCache.java
@@ -20,6 +20,7 @@ public class DungeonCache {
private boolean isInDungeon;
private int elapsedMinutes;
+ private int classMilestone;
private long lastScoreboardCheck;
public DungeonCache(Cowlection main) {
@@ -106,6 +107,10 @@ public class DungeonCache {
failedPuzzles.add(text);
}
+ public void setClassMilestone(int classMilestone) {
+ this.classMilestone = classMilestone;
+ }
+
public boolean addDestroyedCrypt(UUID uuid) {
return destroyedCrypts.add(uuid);
}
@@ -131,6 +136,10 @@ public class DungeonCache {
return failedPuzzles.size();
}
+ public int getClassMilestone() {
+ return classMilestone;
+ }
+
public int getDestroyedCrypts() {
return destroyedCrypts.size();
}
@@ -145,5 +154,6 @@ public class DungeonCache {
failedPuzzles.clear();
destroyedCrypts.clear();
elapsedMinutes = 0;
+ classMilestone = 0;
}
}