Implements World.save and Server.savePlayers()

This commit is contained in:
Morgan Humes 2011-02-25 21:29:42 -05:00 committed by Erik Broes
parent 1505b4bf3c
commit 9a264ed666
3 changed files with 14 additions and 2 deletions

View File

@ -42,7 +42,7 @@ public class World implements IBlockAccess {
public boolean l = false; public boolean l = false;
public final WorldProvider m; public final WorldProvider m;
protected List n = new ArrayList(); protected List n = new ArrayList();
protected IChunkProvider o; public IChunkProvider o; // CraftBukkit protected->public
protected final IDataManager p; protected final IDataManager p;
public WorldData q; // CraftBukkit protected->public public WorldData q; // CraftBukkit protected->public
public boolean r; public boolean r;

View File

@ -297,4 +297,8 @@ public final class CraftServer implements Server {
return null; return null;
} }
} }
public void savePlayers() {
server.d();
}
} }

View File

@ -474,4 +474,12 @@ public class CraftWorld implements World {
return list; return list;
} }
public void save() {
// Writes level.dat
world.r();
// Saves all chunks/regions
world.o.a(true, null);
}
} }