Skip to content

Plugin API

cycodly edited this page Mar 21, 2025 · 2 revisions

Caution

This wiki page is not finished

The SystemWorld.class is for world loading, creating, etc.

// 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 PlaceholderAPI to get some informations

Clone this wiki locally