Hello, I want to make a ranking for my System. So i have a directory where one file exists for each player. In this config, there is a value named Points. Now i want to sort all player points and get the top 3(as a variable or array or else), so i can display them in a ranking. Any ideas how to realize that? Regards, Blockstorm_
Load the files into an associative array by player UUID / name as key and points as value. Then use asort. Due to performance reasons you shouldn't use separated files... If you mostly need all of those files, put all in one file, if you let them separated only load the ones you need, not all. Best is to use SQL.