Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void startTelportation(Player p){
- ArrayList<Location> spawn = new ArrayList<Location>();
- spawn.add(new Location(Bukkit.getWorlds().get(0), 981.5, 52, 303.5));
- spawn.add(new Location(Bukkit.getWorlds().get(0), 1004.5, 51, 282.5));
- spawn.add(new Location(Bukkit.getWorlds().get(0), 1023.5, 48, 287.5));
- spawn.add(new Location(Bukkit.getWorlds().get(0), 1026.5, 51, 303.5));
- spawn.add(new Location(Bukkit.getWorlds().get(0), 1002.5, 52, 320.5));
- spawn.add(new Location(Bukkit.getWorlds().get(0), 991.5, 53, 306.5));
- spawn.add(new Location(Bukkit.getWorlds().get(0), 1027.5, 46, 301.5));
- spawn.add(new Location(Bukkit.getWorlds().get(0), 1011.5, 44, 311.5));
- spawn.add(new Location(Bukkit.getWorlds().get(0), 990.5, 47, 307.5));
- spawn.add(new Location(Bukkit.getWorlds().get(0), 995.5, 47, 288.5));
- spawn.add(new Location(Bukkit.getWorlds().get(0), 1001.5, 44, 299.5));
- spawn.add(new Location(Bukkit.getWorlds().get(0), 1000.5, 52, 298.5));
- Random ran = new Random();
- Location randomLoc = spawn.get(ran.nextInt(spawn.size()));
- p.teleport(randomLoc);
- spawn.remove(randomLoc);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement