Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 05:20:05 +01:00
Implements World.save and Server.savePlayers()
Dieser Commit ist enthalten in:
Ursprung
1505b4bf3c
Commit
9a264ed666
@ -42,7 +42,7 @@ public class World implements IBlockAccess {
|
||||
public boolean l = false;
|
||||
public final WorldProvider m;
|
||||
protected List n = new ArrayList();
|
||||
protected IChunkProvider o;
|
||||
public IChunkProvider o; // CraftBukkit protected->public
|
||||
protected final IDataManager p;
|
||||
public WorldData q; // CraftBukkit protected->public
|
||||
public boolean r;
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren