Examples of SetXP


Examples of uk.co.tggl.pluckerpluck.multiinv.workarounds.SetXP

    miPlayer.loadHunger(group);
    // If we have the xp bug, let's "set" the xp several times. Seems like the client doesn't update the
    // xp properly if it's still loading the world... so let's just send it the current xp several times.
    miPlayer.loadExperience(group);
    if(MIYamlFiles.xpfix) {
      plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new SetXP(player, this), 5);
      plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new SetXP(player, this), 15);
      plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new SetXP(player, this), 25);
      plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new SetXP(player, this), 35);
      plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new SetXP(player, this), 75);
      // Last one sets those really laggy clients 30 seconds after world change. If you have any more
      // lag than this, you have problems!
      plugin.getServer().getScheduler().scheduleSyncDelayedTask(plugin, new SetXP(player, this), 600);
    }
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.