The richest, the total, and what was last moved HyperEconomy
expressiontop balancesHyperEconomyexample
The names of the players with the most of the server's money, richest first, up to 100. Everybody who has played here counts, online or not
for each {_name} in top balances:
add 1 to {_place}
if {_place} <= 10:
send "&e#%{_place}% &f%{_name}% &7- %economy format of balance of {_name}%"
expressioneconomy rank of <who>HyperEconomyexample
Where a player stands among everybody by how much they have: 1 for the richest. Unset for somebody who has nothing
set {_mine} to economy rank of player
expressioneconomy totalHyperEconomyexample
All the money there is: what everybody has, added up
send "&7In all there are %economy format of economy total%."
expressiontransactions of <who>HyperEconomyexample
What other plugins last paid that player or took from them, newest first, as text such as +50 coins and -20 coins; twenty at most. economy transactions of <who> says the same
set {_moves} to transactions of player
Guide and examples
command /rich:
trigger:
send "&6Richest players"
set {_place} to 0
for each {_name} in top balances:
add 1 to {_place}
if {_place} <= 10:
send "&e#%{_place}% &f%{_name}% &7- %economy format of balance of {_name}%"
send "&7In all there are %economy format of economy total%."
set {_mine} to economy rank of player
if {_mine} is set:
send "&7You are #%{_mine}%."
command /moves:
trigger:
set {_moves} to transactions of player
if size of {_moves} is 0:
send "&7No plugin has moved your money since the server started."
stop
send "&6Your last payments"
for each {_move} in {_moves}:
send "&7%{_move}%"
Syntax
Effect
top balances
The names of the players with the most of the server's money, richest first, up to 100. Everybody who has played here counts, online or not
economy rank of <who>
Where a player stands among everybody by how much they have: 1 for the richest. Unset for somebody who has nothing
economy total
All the money there is: what everybody has, added up
transactions of <who>
What other plugins last paid that player or took from them, newest first, as text such as +50 coins and -20 coins; twenty at most. economy transactions of <who> says the same
top balances and economy total ask about every player who has ever joined, so the answer is kept for ten seconds and can be that far behind.
transactions of knows what went through Vault since the server started: a shop, /pay, a job. What a script itself adds to the variable is not a payment by another plugin and is not in the list, and the list is empty again after a restart.