Listener

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

Thread Status:
Not open for further replies.
  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:
        @EventHandler
        public void onPigWalk(PlayerMoveEvent e) {
        }
     
  2. Offline

    iWareWolf

    joaogl
    There are other ways to do something. What are you trying to do when the player moves?
     
  3. 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. Offline

    ZeusAllMighty11

    Mine only has 2gb of ram and it lags too D;
     
Thread Status:
Not open for further replies.

Share This Page