diff options
author | syeyoung <cyougn06@naver.com> | 2022-03-02 23:05:58 +0900 |
---|---|---|
committer | syeyoung <cyougn06@naver.com> | 2022-03-02 23:05:58 +0900 |
commit | e3a19975c6974413a327f8ad95e4f44aac3f5d76 (patch) | |
tree | d6dae253d6bccb204df50e7aacc7701970a056f8 /src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java | |
parent | 8489e1dc06e3800b50db8a4bd334ed23ebf0574c (diff) | |
download | Skyblock-Dungeons-Guide-e3a19975c6974413a327f8ad95e4f44aac3f5d76.tar.gz Skyblock-Dungeons-Guide-e3a19975c6974413a327f8ad95e4f44aac3f5d76.tar.bz2 Skyblock-Dungeons-Guide-e3a19975c6974413a327f8ad95e4f44aac3f5d76.zip |
<3 Hypixel
- Fix Is-In dungeon detection
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java')
-rwxr-xr-x | src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java index a58bfb26..7e2286b3 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/SkyblockStatus.java @@ -109,9 +109,9 @@ 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: ")) { + if (strippedLine.contains("Cleared: ")) { foundDungeon = true; - percentage = Integer.parseInt(strippedLine.substring(17)); + percentage = Integer.parseInt(strippedLine.substring(9).split(" ")[0]); } if (ScorePlayerTeam.formatPlayerName(scorePlayerTeam, sc.getPlayerName()).startsWith(" §7⏣")) { dungeonName = strippedLine.trim(); |