SPIGOT-4681: Note about additional world creation on STARTUP

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2019-04-08 20:32:00 +10:00
parent 6111c0258c
commit f890a5eedc

View file

@ -874,6 +874,7 @@ public final class CraftServer implements Server {
@Override
public World createWorld(WorldCreator creator) {
Preconditions.checkState(!console.worldServer.isEmpty(), "Cannot create additional worlds on STARTUP");
Validate.notNull(creator, "Creator may not be null");
String name = creator.name();