Class PaperConfigLoader

java.lang.Object
com.iantapply.relay.paper.PaperConfigLoader

public final class PaperConfigLoader extends Object
Loads and validates Relay configuration from a Paper plugin's data directory.
  • Method Details

    • load

      public static com.iantapply.relay.core.RelayConfig load(org.bukkit.plugin.java.JavaPlugin plugin) throws IOException
      Ensures the default configuration exists and resolves the effective Relay settings. Redis URI sources are checked in system-property, environment, secret-file, then YAML order.
      Parameters:
      plugin - owning Paper plugin
      Returns:
      validated Relay configuration
      Throws:
      IOException - if a configuration resource or secret file cannot be read
      IllegalArgumentException - if the resolved configuration is invalid