Now works with world containers.

This commit is contained in:
Olof Larsson 2012-07-17 12:22:21 +02:00
parent 56828bc3e6
commit 49f5503935

View File

@ -21,7 +21,7 @@ public class PlayerUtil
{
// Find the player folder
String levelName = ((CraftServer)Bukkit.getServer()).getServer().propertyManager.getString("level-name", "world");
File playerfolder = new File(levelName, "players");
File playerfolder = new File(Bukkit.getWorldContainer(), new File(levelName, "players").getPath());
// Populate by removing .dat
for (File playerfile : playerfolder.listFiles())