Package com.tommytony.war

Examples of com.tommytony.war.Warzone.nextInt()


          player.teleport(random.getTeleport());
        } else if (sign.getLine(1).equalsIgnoreCase("$active")) {
          List<Warzone> warzones = War.war.getActiveWarzones();
          if (warzones.size() == 0) warzones = War.war.getEnabledWarzones();
          if (warzones.size() == 0) return;
          int zone = random.nextInt(warzones.size());
          Warzone random = warzones.get(zone);
          player.teleport(random.getTeleport());
        }
      }
    }
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.