World generators can now use MCOre.
This commit is contained in:
parent
25c644db1b
commit
10ff054323
@ -1,3 +1,4 @@
|
||||
name: mcore3
|
||||
version: 1.0.1
|
||||
main: com.massivecraft.mcore3.MCore
|
||||
load: startup
|
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user