Examples of TeleportPlayerJob


Examples of com.tommytony.war.job.TeleportPlayerJob

          if (playerWarzone != null) {
            playerWarzone.handlePlayerLeave(player, warzone.getTeleport(), true);
          }
          if (warmup > 0 && !player.hasPermission("war.warmupexempt")) {
            final int TICKS_PER_SECOND = 20;
            TeleportPlayerJob job = new TeleportPlayerJob(player, warzone.getTeleport());
            job.runTaskLater(War.war, warmup);
            this.msg("command.tp.init", warmup / TICKS_PER_SECOND);
          } else {
            player.teleport(warzone.getTeleport());
          }
        } else {
View Full Code Here

Examples of com.tommytony.war.job.TeleportPlayerJob

        playerWarzone.handlePlayerLeave(player, War.war.getWarHub().getLocation(), true);
      }
      int warmup = War.war.getWarConfig().getInt(WarConfig.TPWARMUP);
      if (warmup > 0 && !player.hasPermission("war.warmupexempt")) {
        final int TICKS_PER_SECOND = 20;
        TeleportPlayerJob job = new TeleportPlayerJob(player, War.war.getWarHub().getLocation());
        job.runTaskLater(War.war, warmup);
        this.msg("command.tp.init", warmup / TICKS_PER_SECOND);
      } else {
        player.teleport(War.war.getWarHub().getLocation());
      }
    }
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.