so i am making a bot plugin and just wanted to see how to get what player did the most damage pmmp. what would be the correct way to list who did the most damage?
You can listen for the EntityDamageByEntityEvent and use the method getFinalDamage() to get the damage dealt by the player. You just need to save it somewhere and add to it if the same player deals damage again