Package com.tommytony.war

Examples of com.tommytony.war.Team.addPoint()


        // Will not work if XPKILLMETER is enabled
        player.setLevel(player.getLevel() + killSection.getInt("reward.xp"));
      }
      if (killSection.contains("reward.points")) {
        for (int i = 0; i < killSection.getInt("reward.points"); i++) {
          playerTeam.addPoint();
        }
        // Detect win conditions
        if (playerTeam.getPoints() >= playerTeam.getTeamConfig().resolveInt(TeamConfig.MAXSCORE)) {
          player.getServer().getScheduler().runTaskLater(War.war, new Runnable() {
            public void run() {
View Full Code Here


          if (playerWarzone.isReinitializing()) {
            // Battle already ended or interrupted
            playerWarzone.respawnPlayer(event, playerTeam, player);
          } else {
            // All good - proceed with scoring
            playerTeam.addPoint();
            Team victim = playerWarzone.getVictimTeamForFlagThief(player.getName());
           
            // Notify everyone
            for (Team t : playerWarzone.getTeams()) {
              if (War.war.isSpoutServer()) {
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.