Listener

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

  1. Offline

    joaogl

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    @joaogl
    There are other ways to do something. What are you trying to do when the player moves?
  3. Offline

    Johnny Crazy

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    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. Online

    ZeusAllMighty11 BukkitDev Staff

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Mine only has 2gb of ram and it lags too D;

Share This Page