All Known Implementing Classes:
DefaultRetriever, Multiverse4Retriever, Multiverse5Retriever

public interface WorldNameRetriever
Strategy interface for retrieving a user-friendly name for a given World.

This is used to abstract world name resolution logic so that plugins can optionally integrate with external world-aliasing plugins like Multiverse, without hard dependencies on them.

Implementations may:

  • Return the default world name from World.getName()
  • Return an alias or display name from an external plugin such as Multiverse

Used internally by the worldname macro resolver to substitute values like {WORLDNAME} in messages.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    getWorldName(org.bukkit.World world)
     
  • Method Details

    • getWorldName

      Optional<String> getWorldName(org.bukkit.World world)