mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Implements World.save and Server.savePlayers()
By: Morgan Humes <mrh9724@lanaddict.com>
This commit is contained in:
parent
ce87c1fa2c
commit
58aa293c7f
@ -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();
|
||||
}
|
||||
}
|
||||
|
@ -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