@KarimAKL The data is saved in a file, but everything is in HashMap when the server is working.
@KarimAKL I showed you that it saves as you say. I'm asking how I can sort this list optimally. Is it possible to store players' money in some...
@KarimAKL With this? nothing. I wonder how to do top 10 the richest players. Downloading BalTop - sort the hashmap every x minutes and getting...
@DiegoMartines an example?
@KarimAKL sortByValue function: public static HashMap<String, BigDecimal> sortByValue(HashMap<String, BigDecimal> hm) { // Create a...
I wonder how to do top 10 the richest players. I have file (config.yml): money: <NickName>: '10000' And when the server starts, it loads all...
Hey. I am trying to make a list of players in groups sorted by the height of the group. Currently writing all the groups from the oldest to the...
@timtower can you give an example? Do you mean to save the location?
not exist? D: nick: Laureanel god: false op: false money: 1000 lasttimelogin: 1562523516875 homes: jd: ==: org.bukkit.Location world:...
@timtower again World w = Bukkit.getServer().getWorld(section.getString(s + ".world")); giving: name cannot be null and how i can set empty...
@timtower Full import homes from file: ConfigurationSection section = config.getConfigurationSection("homes"); if (section == null) {...
for(String s : section.getKeys(true)) { for(String key : config.getConfigurationSection(s).getKeys(false)) {...
@timtower nooo this home i have in another file not homes.yml - UUID.yml and here i have actually: nick: Laureanel god: false money: 1000...
@timtower ok done but i need now get location from file with keys and values: homes: home: ==: org.bukkit.Location world: world x:...
@timtower for multiple. I want HomeClass to store all home for all players
Separate names with a comma.