Listener

Discussion in 'Plugin Development' started by joaogl, Feb 16, 2013.

  1. Offline

    joaogl

    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 (Text):
    1.     @EventHandler
    2.     public void onPigWalk(PlayerMoveEvent e) {
    3.     }
     
  2. joaogl
    There are other ways to do something. What are you trying to do when the player moves?
     
  3. Offline

    Johnny Crazy

    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.....
     
  4. Offline

    joaogl

    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
     
  5. Mine only has 2gb of ram and it lags too D;
     

Share This Page