Fix Exception when running /is leaderboard

This commit is contained in:
Christian Koop 2023-08-18 21:29:07 +02:00
parent 3105cdf86d
commit 7589bae8b0
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3

View File

@ -200,7 +200,7 @@ public class Leaderboard {
if (leaderboardPosition != -1) {
List<com.craftaro.skyblock.leaderboard.Leaderboard> leaderboardIslands = plugin
.getLeaderboardManager().getLeaderboard(
com.craftaro.skyblock.leaderboard.Leaderboard.Type.valueOf(viewer.getType().getFriendlyName()));
com.craftaro.skyblock.leaderboard.Leaderboard.Type.valueOf(viewer.getType().name()));
if (leaderboardIslands.size() > leaderboardPosition) {
com.craftaro.skyblock.leaderboard.Leaderboard leaderboard = leaderboardIslands.get(leaderboardPosition);
@ -236,7 +236,7 @@ public class Leaderboard {
List<com.craftaro.skyblock.leaderboard.Leaderboard> leaderboardIslands = plugin
.getLeaderboardManager().getLeaderboard(
com.craftaro.skyblock.leaderboard.Leaderboard.Type.valueOf(viewer.getType().getFriendlyName()));
com.craftaro.skyblock.leaderboard.Leaderboard.Type.valueOf(viewer.getType().name()));
for (com.craftaro.skyblock.leaderboard.Leaderboard leaderboard : leaderboardIslands) {
Visit visit = leaderboard.getVisit();