Examples of AchievementPoints


Examples of org.mctourney.autoreferee.util.AchievementPoints

      int crafted = countItemInInventory() - this.count;
      AutoRefMatch match = plugin.getMatch(player.getWorld());
      if (match == null || !match.getCurrentState().inProgress()) return;

      AutoRefPlayer apl = match.getPlayer((Player) player);
      AchievementPoints ach = AchievementPoints.getEquipmentCraft(type);
      if (apl != null) apl.addPoints(ach, crafted / this.size);
    }
View Full Code Here

Examples of org.mctourney.autoreferee.util.AchievementPoints

    EntityDamageEvent cause = event.getEntity().getLastDamageCause();
    if (cause instanceof EntityDamageByEntityEvent)
    {
      Player dmgr = entityToPlayer(((EntityDamageByEntityEvent) cause).getDamager());
      AchievementPoints ach = AchievementPoints.getMonsterKill(event.getEntityType());
      if (match.isPlayer(dmgr)) match.getPlayer(dmgr).addPoints(ach);
    }
  }
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.