Fix for merge request.

This commit is contained in:
Brianna 2020-01-26 14:32:11 -05:00
parent 68a1a65149
commit 800b7fda08

View File

@ -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;
}
}