Before you are asking me with a problem, have a look at the docs.
The class SystemWorld is for world loading, creating, ...
Code (Java):
// Retrieving a instance of a systemworld
SystemWorld world
= SystemWorld.
getSystemWorld
(
"worldname"
)
;
// Load a SystemWorld
if
(
!world.
isLoaded
(
)
)
{
// Load a world, the player will be notified and teleporter when finished
world.
load
(Player player
)
;
}
// Unload a world
// Is world loaded
if
(world.
isLoaded
(
)
)
{
// Unloads a world with a wait timer
// World w is the actual world object of the systemworld
world.
directUnload
(World w
)
;
// Or unload it with the given time in the config
world.
unloadLater
(World w
)
;
}
// Teleport a player to the spawn of this world
world.
teleportToWorldSpawn
(Player p
)
;
// Automatically checks if World w is a SystemWorld
// If so unload its with the given delay in the config
SystemWorld.
tryUnloadLater
(World w
)
;
You can also use the PlaceholderAPI to get some information. Have a look for this on the GitHub Wiki