mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
Implements World.save and Server.savePlayers()
By: Morgan Humes <mrh9724@lanaddict.com>
This commit is contained in:
parent
ce87c1fa2c
commit
58aa293c7f
@ -297,4 +297,8 @@ public final class CraftServer implements Server {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void savePlayers() {
|
||||
server.d();
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user