How to get top accounts with Vault?

I'm trying to get the accounts which have the biggest amount of money, but am not able to.

I tried getting all the accounts, from all the players and iterating to find the highest amounts, but that seems to lag a little when you have over 400 OfflinePlayers to iterate.

Is there any way to find which players have the biggest amount of money?


There are a few ways you can accomplish this.

First of all, you could use Essentials' UserBalanceUpdateEvent and determine if the balance is higher than the high score in the config (in which case, you update the stored value with the new value and the UUID it belongs to).

Second, you could iterate through the OfflinePlayers, but using an Asynchronous task.

Need Your Help

How can I select a text node using Rangy?

javascript range selection rangy

I have a regular text node that I just inserted into the DOM.

correct format of URL rewrite in php

php .htaccess

i'm asking about htaccess url rewrite ( mod_rewrite )