Skip to content

Instantly share code, notes, and snippets.

@kezz
Last active December 18, 2015 08:38
Show Gist options
  • Select an option

  • Save kezz/5755191 to your computer and use it in GitHub Desktop.

Select an option

Save kezz/5755191 to your computer and use it in GitHub Desktop.
List<String> list = getConfig().getStringList("Plague.Spawns.Red");
String randomString = list.get(new Random().nextInt(list.size());
String[] coords = randomString.split(",");
player.teleport(new Location(Bukkit.getWorld(config.getString("Plague.Spawns.World"), coords[0], coords[1], coords[2]));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment