I'm making a small minigame and I would like to be able to store the total amount of points the players have gotten and then later getting the top 3 players and their score. I've been thinking of how to do this for some time and the best way would seem to be either a hashmap or a list. Unfortunately, I have, with my current knowledge of Bukkit and Java, a problem with both of these methods. Firstly, I don't know a way to sort hashmaps by value, in a way where I can still get both key and value. If anyone knows a good way to do this, please let me know. My problem with lists are, that I don't see any good way to store both the players' name and points in a way where I can sort the points and still get the right player from the other list. So I'm wondering, is there another way to do this? Any help would be greatly appreciated. Thanks!