Advertisement
Guest User

Untitled

a guest
Nov 30th, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. public static void startTelportation(Player p){
  2. ArrayList<Location> spawn = new ArrayList<Location>();
  3.  
  4. spawn.add(new Location(Bukkit.getWorlds().get(0), 981.5, 52, 303.5));
  5. spawn.add(new Location(Bukkit.getWorlds().get(0), 1004.5, 51, 282.5));
  6. spawn.add(new Location(Bukkit.getWorlds().get(0), 1023.5, 48, 287.5));
  7. spawn.add(new Location(Bukkit.getWorlds().get(0), 1026.5, 51, 303.5));
  8. spawn.add(new Location(Bukkit.getWorlds().get(0), 1002.5, 52, 320.5));
  9. spawn.add(new Location(Bukkit.getWorlds().get(0), 991.5, 53, 306.5));
  10. spawn.add(new Location(Bukkit.getWorlds().get(0), 1027.5, 46, 301.5));
  11. spawn.add(new Location(Bukkit.getWorlds().get(0), 1011.5, 44, 311.5));
  12. spawn.add(new Location(Bukkit.getWorlds().get(0), 990.5, 47, 307.5));
  13. spawn.add(new Location(Bukkit.getWorlds().get(0), 995.5, 47, 288.5));
  14. spawn.add(new Location(Bukkit.getWorlds().get(0), 1001.5, 44, 299.5));
  15. spawn.add(new Location(Bukkit.getWorlds().get(0), 1000.5, 52, 298.5));
  16.  
  17. Random ran = new Random();
  18. Location randomLoc = spawn.get(ran.nextInt(spawn.size()));
  19. p.teleport(randomLoc);
  20. spawn.remove(randomLoc);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement