-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added documentation for unloading a world
- Loading branch information
1 parent
07bbec1
commit 3775731
Showing
2 changed files
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Given that you have your SlimeWorld object, you can unload it using the following method: | ||
```java | ||
slimeworld.unloadWorld(true); | ||
``` | ||
The boolean parameter indicates whether the world should be saved or not. If you want to save the world, set it to true. Otherwise, set it to false. | ||
|
||
There is also an optional second parameter that allows you to manually set a 'fallback' world. This is the world that players will be teleported to if they are in the world that is being unloaded. If you don't set this parameter, the fallback world will be the default world. | ||
|
||
```java | ||
slimeworld.unloadWorld(true, "world_the_end"); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters