Hey Guys.
I need a plugin that gets the rank/place of the player in the database.
Example:
Mr_Mocraft: 1700 Kills => #3
Ms_Exmple: 2500 Kills => #1
He_Choppp: 1900 Kills => #2
I don't need a plugin that shows the best players. I need a plugin that shows the players his rank. When Mr_Mocraft joins he should see in a hologram (or you do that with PlaceholderAPI) his rank (=> #3)
Important:
I already have a sql "command" with this function that works perfectly in phpmyadmin.
It returns the place in the table.
I need a plugin that gets the rank/place of the player in the database.
Example:
Mr_Mocraft: 1700 Kills => #3
Ms_Exmple: 2500 Kills => #1
He_Choppp: 1900 Kills => #2
I don't need a plugin that shows the best players. I need a plugin that shows the players his rank. When Mr_Mocraft joins he should see in a hologram (or you do that with PlaceholderAPI) his rank (=> #3)
Important:
I already have a sql "command" with this function that works perfectly in phpmyadmin.
It returns the place in the table.
Code:
select rank
from
(
select player_name, @rank := @rank + 1 as rank
from kitbattle_
cross join (select @rank := 0) r
order by Kills desc
) tmp
where player_name = 'ThePlayer'
Last edited:
