From 7589bae8b0fc9ee0f026e9ebf6334893bd6a0e11 Mon Sep 17 00:00:00 2001 From: Christian Koop Date: Fri, 18 Aug 2023 21:29:07 +0200 Subject: [PATCH] Fix Exception when running /is leaderboard --- src/main/java/com/craftaro/skyblock/menus/Leaderboard.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/craftaro/skyblock/menus/Leaderboard.java b/src/main/java/com/craftaro/skyblock/menus/Leaderboard.java index 7d700652..b34da095 100644 --- a/src/main/java/com/craftaro/skyblock/menus/Leaderboard.java +++ b/src/main/java/com/craftaro/skyblock/menus/Leaderboard.java @@ -200,7 +200,7 @@ public class Leaderboard { if (leaderboardPosition != -1) { List 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 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();