Implements World.save and Server.savePlayers()

By: Morgan Humes <mrh9724@lanaddict.com>
This commit is contained in:
CraftBukkit/Spigot 2011-02-25 21:29:42 -05:00
parent ce87c1fa2c
commit 58aa293c7f
2 changed files with 13 additions and 1 deletions

View File

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

View File

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