Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. public void setLoc(Location loc, Player player) {
  2. String location = loc.getWorld().getName() + "," + loc.getX() + "," + loc.getY() + "," + loc.getZ() + "," + loc.getYaw() + "," + loc.getPitch();
  3. List<String> players = getConfig().getStringList("players");
  4. List<String> locations = getConfig().getStringList("locations");
  5. players.add(player.toString());
  6. locations.add(location);
  7. getConfig().set("player" ,player.getUniqueId().toString());
  8. getConfig().set("locations", locations);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement