Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void SpawnLoc(){
- ArrayList<Location> spawnlocs = new ArrayList<Location>();
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -33.5, 93, -13.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -86.5, 72, -40.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -96.5, 93, -26.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -91.5, 70, 15.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -92.5, 71, 61.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -71.5, 66, 90.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -85.5, 72, 102.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -24.5, 75, 83.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -40.5, 79, 122.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -77.5, 84, 140.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -4.5, 79.5, 120.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -6.5, 75, 114.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 11.5, 111, 112.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 41.5, 77, 105.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 50.5, 90, 67.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 121.5, 74, 77.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 102.5, 73, 28.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -3.5, 76, 55.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -32.5, 72, 3.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 16.5, 70, -10.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -51.5, 89, -39.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -3.5, 98, -58.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -1.5, 108, -34.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 28.5, 79, -55.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 48.5, 73, -23.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -51.5, 97, 19.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 146.5, 73, -13.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 94.5, 131, -22.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 18.5, 87, 40.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 3.5, 69, -25.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -23.5, 118, 63.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 14.5, 127, 118.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 63.5, 97, 65.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), -51.5, 105, -33.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 82.5, 144, 24.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 118.5, 158, -22.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 80.5, 88, -10.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 90.5, 88, -31.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 79.5, 88, -43.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 83.5, 88, 0.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 98.5, 82, -19.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 98.5, 82, -26.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 116.5, 88, -25.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 82.5, 72, -35.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 101.5, 72, -4.5));
- spawnlocs.add(new Location(Bukkit.getWorld("world"), 91.5, 72, -22.5));
- Random ran = new Random();
- for(Player pls : Bukkit.getOnlinePlayers()){
- Location randomLoc = spawnlocs.get(ran.nextInt(spawnlocs.size()));
- pls.teleport(randomLoc);
- spawnlocs.remove(randomLoc);
- }
- }
- public static Location resSpawnLoc(){
- ArrayList<Location> respawnlocs = new ArrayList<Location>();
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -33.5, 93, -13.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -86.5, 72, -40.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -96.5, 93, -26.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -91.5, 70, 15.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -92.5, 71, 61.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -71.5, 66, 90.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -85.5, 72, 102.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -24.5, 75, 83.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -40.5, 79, 122.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -77.5, 84, 140.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -4.5, 79.5, 120.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -6.5, 75, 114.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 11.5, 111, 112.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 41.5, 77, 105.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 50.5, 90, 67.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 121.5, 74, 77.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 102.5, 73, 28.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -3.5, 76, 55.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -32.5, 72, 3.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 16.5, 70, -10.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -51.5, 89, -39.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -3.5, 98, -58.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -1.5, 108, -34.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 28.5, 79, -55.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 48.5, 73, -23.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -51.5, 97, 19.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 146.5, 73, -13.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 94.5, 131, -22.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 18.5, 87, 40.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 3.5, 69, -25.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -23.5, 118, 63.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 14.5, 127, 118.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 63.5, 97, 65.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), -51.5, 105, -33.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 82.5, 144, 24.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 118.5, 158, -22.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 80.5, 88, -10.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 90.5, 88, -31.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 79.5, 88, -43.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 83.5, 88, 0.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 98.5, 82, -19.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 98.5, 82, -26.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 116.5, 88, -25.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 82.5, 72, -35.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 101.5, 72, -4.5));
- respawnlocs.add(new Location(Bukkit.getWorld("world"), 91.5, 72, -22.5));
- Random ran = new Random();
- Location randomLoc = respawnlocs.get(ran.nextInt(respawnlocs.size()+1));
- return randomLoc;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement