geforkt von Mirrors/Paper
Implements World.save and Server.savePlayers()
By: Morgan Humes <mrh9724@lanaddict.com>
Dieser Commit ist enthalten in:
Ursprung
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);
|
||||
}
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren