Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void setLoc(Location loc, Player player) {
- String location = loc.getWorld().getName() + "," + loc.getX() + "," + loc.getY() + "," + loc.getZ() + "," + loc.getYaw() + "," + loc.getPitch();
- List<String> players = getConfig().getStringList("players");
- List<String> locations = getConfig().getStringList("locations");
- players.add(player.toString());
- locations.add(location);
- getConfig().set("player" ,player.getUniqueId().toString());
- getConfig().set("locations", locations);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement