Class UtilWorld

java.lang.Object
net.lewmc.essence.world.UtilWorld

public class UtilWorld extends Object
The UtilWorld class, used for world management.
  • Constructor Details

    • UtilWorld

      public UtilWorld(Essence plugin)
      Constructor for the class.
      Parameters:
      plugin - Essence - Reference to the main plugin class.
  • Method Details

    • create

      public UtilWorld.WORLD_STATUS create(String name, Map<String,String> flags)
      Creates a world
      Parameters:
      name - String - the world name
      flags - Map(String, String) - the flags
      Returns:
      WORLD_STATUS - the status
    • delete

      public UtilWorld.WORLD_STATUS delete(String name)
      Deletes a world
      Parameters:
      name - String - the world name
      Returns:
      WORLD_STATUS - the status
    • unload

      public UtilWorld.WORLD_STATUS unload(String name)
      Unloads a world
      Parameters:
      name - String - the world name
      Returns:
      WORLD_STATUS - the status
    • load

      public UtilWorld.WORLD_STATUS load(String name)
      Loads a world
      Parameters:
      name - String - the world name
      Returns:
      WORLD_STATUS - the status
    • list

      public List<UtilWorld.ESSENCE_WORLD> list()
      Returns a list of worlds (loaded and unloaded).
      Returns:
      List(ESSENCE_WORLD)
    • autoloadWorlds

      public void autoloadWorlds()
      Autoloads worlds on startup.