Hello, for example using the PlayerMoveEvent listener if there are like 10 players moving it starts to lag a bit how can I reduce the lag? Code: @EventHandler public void onPigWalk(PlayerMoveEvent e) { }
If you are running the Server on your Home-PC, make sure you start it with enough RAM. If your PlayerMoveEvent Method is empty,like in your Post, the Server should not lag cause of that Event.....
I know I've created a code that read the books on player inventory whitch will allows you to have diferent pig velocitys but is laging a bit.. My server uses 10G of ram btw