Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static void SpawnLoc(){
  2.         ArrayList<Location> spawnlocs = new ArrayList<Location>();
  3.        
  4.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -33.5, 93, -13.5));
  5.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -86.5, 72, -40.5));
  6.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -96.5, 93, -26.5));
  7.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -91.5, 70, 15.5));
  8.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -92.5, 71, 61.5));
  9.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -71.5, 66, 90.5));
  10.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -85.5, 72, 102.5));
  11.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -24.5, 75, 83.5));
  12.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -40.5, 79, 122.5));
  13.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -77.5, 84, 140.5));
  14.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -4.5, 79.5, 120.5));
  15.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -6.5, 75, 114.5));
  16.        
  17.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 11.5, 111, 112.5));
  18.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 41.5, 77, 105.5));
  19.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 50.5, 90, 67.5));
  20.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 121.5, 74, 77.5));
  21.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 102.5, 73, 28.5));
  22.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -3.5, 76, 55.5));
  23.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -32.5, 72, 3.5));
  24.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 16.5, 70, -10.5));
  25.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -51.5, 89, -39.5));
  26.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -3.5, 98, -58.5));
  27.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -1.5, 108, -34.5));
  28.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 28.5, 79, -55.5));
  29.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 48.5, 73, -23.5));
  30.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -51.5, 97, 19.5));
  31.        
  32.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 146.5, 73, -13.5));
  33.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 94.5, 131, -22.5));
  34.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 18.5, 87, 40.5));
  35.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 3.5, 69, -25.5));
  36.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -23.5, 118, 63.5));
  37.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 14.5, 127, 118.5));
  38.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 63.5, 97, 65.5));
  39.         spawnlocs.add(new Location(Bukkit.getWorld("world"), -51.5, 105, -33.5));
  40.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 82.5, 144, 24.5));
  41.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 118.5, 158, -22.5));
  42.        
  43.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 80.5, 88, -10.5));
  44.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 90.5, 88, -31.5));
  45.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 79.5, 88, -43.5));
  46.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 83.5, 88, 0.5));
  47.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 98.5, 82, -19.5));
  48.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 98.5, 82, -26.5));
  49.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 116.5, 88, -25.5));
  50.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 82.5, 72, -35.5));
  51.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 101.5, 72, -4.5));
  52.         spawnlocs.add(new Location(Bukkit.getWorld("world"), 91.5, 72, -22.5));
  53.        
  54.         Random ran = new Random();
  55.         for(Player pls : Bukkit.getOnlinePlayers()){
  56.             Location randomLoc = spawnlocs.get(ran.nextInt(spawnlocs.size()));
  57.             pls.teleport(randomLoc);
  58.             spawnlocs.remove(randomLoc);
  59.         }
  60.     }
  61.        
  62.         public static Location resSpawnLoc(){
  63.             ArrayList<Location> respawnlocs = new ArrayList<Location>();
  64.            
  65.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -33.5, 93, -13.5));
  66.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -86.5, 72, -40.5));
  67.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -96.5, 93, -26.5));
  68.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -91.5, 70, 15.5));
  69.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -92.5, 71, 61.5));
  70.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -71.5, 66, 90.5));
  71.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -85.5, 72, 102.5));
  72.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -24.5, 75, 83.5));
  73.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -40.5, 79, 122.5));
  74.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -77.5, 84, 140.5));
  75.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -4.5, 79.5, 120.5));
  76.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -6.5, 75, 114.5));
  77.            
  78.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 11.5, 111, 112.5));
  79.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 41.5, 77, 105.5));
  80.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 50.5, 90, 67.5));
  81.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 121.5, 74, 77.5));
  82.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 102.5, 73, 28.5));
  83.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -3.5, 76, 55.5));
  84.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -32.5, 72, 3.5));
  85.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 16.5, 70, -10.5));
  86.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -51.5, 89, -39.5));
  87.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -3.5, 98, -58.5));
  88.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -1.5, 108, -34.5));
  89.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 28.5, 79, -55.5));
  90.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 48.5, 73, -23.5));
  91.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -51.5, 97, 19.5));
  92.            
  93.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 146.5, 73, -13.5));
  94.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 94.5, 131, -22.5));
  95.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 18.5, 87, 40.5));
  96.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 3.5, 69, -25.5));
  97.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -23.5, 118, 63.5));
  98.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 14.5, 127, 118.5));
  99.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 63.5, 97, 65.5));
  100.             respawnlocs.add(new Location(Bukkit.getWorld("world"), -51.5, 105, -33.5));
  101.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 82.5, 144, 24.5));
  102.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 118.5, 158, -22.5));
  103.            
  104.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 80.5, 88, -10.5));
  105.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 90.5, 88, -31.5));
  106.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 79.5, 88, -43.5));
  107.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 83.5, 88, 0.5));
  108.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 98.5, 82, -19.5));
  109.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 98.5, 82, -26.5));
  110.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 116.5, 88, -25.5));
  111.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 82.5, 72, -35.5));
  112.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 101.5, 72, -4.5));
  113.             respawnlocs.add(new Location(Bukkit.getWorld("world"), 91.5, 72, -22.5));
  114.            
  115.             Random ran = new Random();
  116.             Location randomLoc = respawnlocs.get(ran.nextInt(respawnlocs.size()+1));
  117.             return randomLoc;
  118.     }
  119.  
  120. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement