World generators can now use MCOre.

This commit is contained in:
Olof Larsson committed 2012-05-30 17:26:20 +02:00
1 parent 25c644db1b
commit 10ff054323
2 files changed
+4 -2

No files matched your search

@@ -20,7 +20,8 @@ public class PlayerUtil
public static void populateAllVisitorNames()
{
// Find the player folder
File playerfolder = new File(Bukkit.getWorlds().get(0).getWorldFolder(), "players");
String levelName = ((CraftServer)Bukkit.getServer()).getServer().propertyManager.getString("level-name", "world");
File playerfolder = new File(levelName, "players");
// Populate by removing .dat
for (File playerfile : playerfolder.listFiles())