World generators can now use MCOre.

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

View File

@ -1,3 +1,4 @@
name: mcore3
version: 1.0.1
main: com.massivecraft.mcore3.MCore
main: com.massivecraft.mcore3.MCore
load: startup

View File

@ -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())