mrkirby153

Untitled

Nov 27th, 2013
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.71 KB | None | 0 0
  1. public static Location getVillageCenter(String villageName) {
  2.         int x = config.getInt("villages." + villageName + ".center.x");
  3.         int y = config.getInt("villages." + villageName + ".center.y");
  4.         int z = config.getInt("villages." + villageName + ".center.z");
  5.         World w = plugin.getServer().getWorld(config.getString("villages." + villageName + ".center.world", "world"));
  6.         for(String s: config.getConfigurationSection("villages."+villageName+".center").getKeys(false)){
  7.             System.out.println(s);
  8.         }
  9.         System.out.println(x + " " + y + " " + z + " " + config.getString("villages." + villageName + ".center.world"));
  10.  
  11.         return new Location(w, x, y, z);
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment