From 800b7fda08aad171bb3bf8938899cc1d4431e606 Mon Sep 17 00:00:00 2001 From: Brianna Date: Sun, 26 Jan 2020 14:32:11 -0500 Subject: [PATCH] Fix for merge request. --- .../com/songoda/skyblock/leaderboard/LeaderboardManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/songoda/skyblock/leaderboard/LeaderboardManager.java b/src/main/java/com/songoda/skyblock/leaderboard/LeaderboardManager.java index c788773a..f9cdebdc 100644 --- a/src/main/java/com/songoda/skyblock/leaderboard/LeaderboardManager.java +++ b/src/main/java/com/songoda/skyblock/leaderboard/LeaderboardManager.java @@ -10,6 +10,7 @@ import com.songoda.skyblock.visit.Visit; import com.songoda.skyblock.visit.VisitManager; import com.songoda.skyblock.world.WorldManager; import org.bukkit.Bukkit; +import org.bukkit.OfflinePlayer; import org.bukkit.entity.Player; import java.io.File; @@ -111,7 +112,7 @@ public class LeaderboardManager { leaderboardPlayers.sort(Comparator.comparingLong(LeaderboardPlayer::getValue).reversed()); for (int i = 0; i < leaderboardPlayers.size(); i++) { - if (leaderboardPlayers.get(i).getUUID().equals(offlinePlayer.getUniqueId()) { + if (leaderboardPlayers.get(i).getUUID().equals(offlinePlayer.getUniqueId())) { return i + 1; } }