Interface GroupService


public interface GroupService
Configured groups and the live context of online players.

World ids are platform names: Bukkit world names (world_nether) on Bukkit, dimension ids (minecraft:the_nether) on Fabric.

  • Method Details

    • worldGroups

      @NotNull @NotNull Set<String> worldGroups()
      Returns:
      all configured world groups
    • regionGroups

      @NotNull @NotNull Set<String> regionGroups()
      Returns:
      all configured region groups (empty when regions are not supported/enabled)
    • worldMappings

      @NotNull @NotNull Map<String,String> worldMappings()
      Returns:
      world id -> group name, as configured
    • groupOfWorld

      @Nullable @Nullable String groupOfWorld(@NotNull @NotNull String worldId)
      Returns:
      the group of a world, or null when the world is not managed by SepareWorldItems
    • defaultGroup

      @NotNull @NotNull String defaultGroup()
      Returns:
      the configured default group
    • currentContext

      @Nullable @Nullable GroupContext currentContext(@NotNull @NotNull UUID player)
      Returns:
      the context whose data the online player is currently using, or null if unknown/offline