- Improved graphics for Elo display in /stats
This commit is contained in:
parent
189296a586
commit
dcd376b837
@ -283,13 +283,13 @@ public class EloManager extends MiniDbClientPlugin<EloClientData>
|
|||||||
build.setTitle(C.cGreen + _disp);
|
build.setTitle(C.cGreen + _disp);
|
||||||
int percentage = (elo * 100)/_maxElo;
|
int percentage = (elo * 100)/_maxElo;
|
||||||
|
|
||||||
ChatColor color = ChatColor.YELLOW;
|
String color = C.cYellow;
|
||||||
if (percentage <= 35)
|
if (percentage <= 35)
|
||||||
color = ChatColor.RED;
|
color = C.cRed;
|
||||||
else if (percentage >= 65)
|
else if (percentage >= 65)
|
||||||
color = ChatColor.GREEN;
|
color = C.cGreen;
|
||||||
|
|
||||||
build.addLore(C.cGold + "Your Progress", color + "" + percentage + " complete with this division.");
|
build.addLore(C.cGold + "Your Progress:", color + percentage + "% complete with this Division");
|
||||||
return build.build();
|
return build.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user