Improved the code for the RANK placeholder

This commit is contained in:
Florian CUNY 2019-06-10 15:16:16 +02:00
parent 44038ddbda
commit 35f8a80167

View File

@ -96,7 +96,7 @@ public enum GameModePlaceholder {
* Displays the rank this player has on his island.
* @since 1.5.0
*/
RANK("rank", (addon, user, island) -> (island == null || user == null) ? "" : addon.getPlugin().getLocalesManager().get(user, addon.getPlugin().getRanksManager().getRank(island.getRank(user)))),
RANK("rank", (addon, user, island) -> (island == null || user == null) ? "" : user.getTranslation(addon.getPlugin().getRanksManager().getRank(island.getRank(user)))),
/**
* Displays how many times this player reset his island.
* @since 1.5.0