aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java
index e05edb00..7cc75d4d 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java
@@ -23,6 +23,9 @@ public class SkyblockStatus {
@Setter
private DungeonContext context;
+ @Getter
+ private String dungeonName;
+
private final Pattern SERVER_BRAND_PATTERN = Pattern.compile("(.+) <- (?:.+)");
@@ -72,10 +75,13 @@ public class SkyblockStatus {
for (Score sc:scores) {
ScorePlayerTeam scorePlayerTeam = scoreboard.getPlayersTeam(sc.getPlayerName());
String strippedLine = TextUtils.keepScoreboardCharacters(TextUtils.stripColor(ScorePlayerTeam.formatPlayerName(scorePlayerTeam, sc.getPlayerName()))).trim();
-
if (strippedLine.contains("Dungeon Cleared: ")) {
foundDungeon = true;
}
+ if (ScorePlayerTeam.formatPlayerName(scorePlayerTeam, sc.getPlayerName()).startsWith(" §7⏣")) {
+ System.out.println(strippedLine);
+ dungeonName = strippedLine;
+ }
}
isOnDungeon = foundDungeon;