Implemented WorldUnloadEvent and unloadWorld().
By: Rigby <rigby@onarandombox.com>
This commit is contained in:
parent
1dca6874d8
commit
516d253953
5 changed files with 57 additions and 0 deletions
|
@ -190,6 +190,24 @@ public interface Server {
|
|||
*/
|
||||
public World createWorld(String name, World.Environment environment, long seed, ChunkGenerator generator);
|
||||
|
||||
/**
|
||||
* Unloads a world with the given name.
|
||||
*
|
||||
* @param name Name of the world to unload
|
||||
* @param save Whether to save the chunks before unloading.
|
||||
* @return Whether the action was Successful
|
||||
*/
|
||||
public boolean unloadWorld(String name, boolean save);
|
||||
|
||||
/**
|
||||
* Unloads the given world.
|
||||
*
|
||||
* @param world The world to unload
|
||||
* @param save Whether to save the chunks before unloading.
|
||||
* @return Whether the action was Successful
|
||||
*/
|
||||
public boolean unloadWorld(World world, boolean save);
|
||||
|
||||
/**
|
||||
* Gets the world with the given name
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue