Skip to content

Commit

Permalink
Smart move to better code.
Browse files Browse the repository at this point in the history
  • Loading branch information
EncryptSL committed Apr 5, 2024
1 parent 325fbfc commit 9083ccd
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ class EconomyPlaceholderAPI(private val liteEco: LiteEco, private val extVersion
private fun topBalance(): LinkedHashMap<String, Double> {
return liteEco.api.getTopBalance()
.filterKeys { uuid -> Bukkit.getOfflinePlayer(UUID.fromString(uuid)).hasPlayedBefore() }
.toList()
.sortedByDescending { (_, balance) -> balance }
.toMap()
.let { LinkedHashMap<String, Double>(it) }
}
}

0 comments on commit 9083ccd

Please sign in to comment.