diff --git a/README.md b/README.md index 494ad64c0..975a75e8e 100755 --- a/README.md +++ b/README.md @@ -1,8 +1,13 @@ BSkyBlock ========== [![Build Status](https://travis-ci.org/tastybento/bskyblock.svg?branch=master)](https://travis-ci.org/tastybento/bskyblock) +[![Lines Of Code](https://sonarcloud.io/api/project_badges/measure?project=us.tastybento%3Abskyblock&metric=ncloc) +[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=us.tastybento%3Abskyblock&metric=sqale_rating) +[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=us.tastybento%3Abskyblock&metric=reliability_rating) +[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=us.tastybento%3Abskyblock&metric=security_rating) +[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=us.tastybento%3Abskyblock&metric=bugs) -A Skyblock Bukkit plugin for Minecraft derived from the well-known ASkyBlock! +A skyblock Bukkit plugin for Minecraft derived from the well-known ASkyBlock! This is a survival game where the player starts with an island in the sky. BSkyBlock (Better SkyBlock) represents a turning point on ASkyBlock's history : Tastybento and Poslovitch thought and designed together this complete rewrite in order to provide a whole new way to play Skyblock. diff --git a/src/main/java/us/tastybento/bskyblock/managers/RanksManager.java b/src/main/java/us/tastybento/bskyblock/managers/RanksManager.java index 96871c529..a609c2f3e 100644 --- a/src/main/java/us/tastybento/bskyblock/managers/RanksManager.java +++ b/src/main/java/us/tastybento/bskyblock/managers/RanksManager.java @@ -119,7 +119,7 @@ public class RanksManager { return getRanks().values().stream().mapToInt(x -> { if (x > currentRank) { return x; - }; + } return OWNER_RANK; }).min().orElse(currentRank); } @@ -133,7 +133,7 @@ public class RanksManager { return getRanks().values().stream().mapToInt(x -> { if (x < currentRank) { return x; - }; + } return BANNED_RANK; }).max().orElse(currentRank); }