mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-04 14:12:20 -07:00
Added World.Environment enum, changed createWorld to use it
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -89,8 +89,15 @@ public interface Server {
|
||||
* @return A list of worlds
|
||||
*/
|
||||
public List<World> getWorlds();
|
||||
|
||||
public World createWorld(String name, boolean nether);
|
||||
|
||||
/**
|
||||
* Creates or loads a world with the given name
|
||||
*
|
||||
* @param name Name of the world to load
|
||||
* @param environment Environment type of the world
|
||||
* @return Newly created or loaded World
|
||||
*/
|
||||
public World createWorld(String name, World.Environment environment);
|
||||
|
||||
/**
|
||||
* Reloads the server, refreshing settings and plugin information
|
||||
|
Reference in New Issue
Block a user