Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static Location getVillageCenter(String villageName) {
- int x = config.getInt("villages." + villageName + ".center.x");
- int y = config.getInt("villages." + villageName + ".center.y");
- int z = config.getInt("villages." + villageName + ".center.z");
- World w = plugin.getServer().getWorld(config.getString("villages." + villageName + ".center.world", "world"));
- for(String s: config.getConfigurationSection("villages."+villageName+".center").getKeys(false)){
- System.out.println(s);
- }
- System.out.println(x + " " + y + " " + z + " " + config.getString("villages." + villageName + ".center.world"));
- return new Location(w, x, y, z);
- }
Advertisement
Add Comment
Please, Sign In to add comment