Skip to content

Commit 77884f0

Browse files
committed
Update to BentoBox 2.0.0 API
1 parent 1a4077b commit 77884f0

File tree

3 files changed

+924
-1035
lines changed

3 files changed

+924
-1035
lines changed

src/main/java/world/bentobox/level/LevelsManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ public Map<World, TopTenData> getTopTenLists() {
356356
public int getRank(@NonNull World world, UUID uuid) {
357357
createAndCleanRankings(world);
358358
Stream<Entry<UUID, Long>> stream = topTenLists.get(world).getTopTen().entrySet().stream()
359-
.filter(e -> addon.getIslands().isOwner(world, e.getKey())).filter(l -> l.getValue() > 0)
359+
.filter(e -> addon.getIslands().hasIsland(world, e.getKey())).filter(l -> l.getValue() > 0)
360360
.sorted(Collections.reverseOrder(Map.Entry.comparingByValue()));
361361
return (int) (stream.takeWhile(x -> !x.getKey().equals(uuid)).map(Map.Entry::getKey).count() + 1);
362362
}

0 commit comments

Comments
 (0)