Interface BukkitServer

All Superinterfaces:
GenericServer

public interface BukkitServer extends GenericServer

Paper specific instance of a GenericServer.
This interface includes a Map of Worlds the Server currently has.

This interface is useful for cases where you want to get the worlds of the Server itself, by simply casting your GenericServer instance to a BukkitServer one. Make sure to do proper instanceof checks first before attempting to cast.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a Map<String, World> where the key is the name of the World and the value the World of the Server.

    Methods inherited from interface ch.andre601.advancedserverlist.api.objects.GenericServer

    getHost, getPlayersMax, getPlayersOnline
  • Method Details

    • getWorlds

      Map<String,World> getWorlds()
      Returns a Map<String, World> where the key is the name of the World and the value the World of the Server.
      Returns:
      Possibly-empty Map containing a world name and World instance.