Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Location getCom(Player p)
- {
- File file = new File("plugins//LobbySystem//Navigator.yml");
- Location loc = p.getLocation();
- YamlConfiguration cfg = YamlConfiguration.loadConfiguration(file);
- loc.setX(cfg.getDouble("Com.X"));
- loc.setY(cfg.getDouble("Com.Y"));
- loc.setZ(cfg.getDouble("Com.Z"));
- loc.setYaw((float)cfg.getDouble("Com.Yaw"));
- loc.setPitch((float)cfg.getDouble("Com.Pitch"));
- loc.setWorld(Bukkit.getWorld(cfg.getString("Com.World")));
- return loc;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement