mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-22 10:15:54 +01:00
Fix Exception when running /is leaderboard
This commit is contained in:
parent
3105cdf86d
commit
7589bae8b0
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user