Class PaperConfigLoader
java.lang.Object
com.iantapply.relay.paper.PaperConfigLoader
Loads and validates Relay configuration from a Paper plugin's data directory.
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.iantapply.relay.core.RelayConfigload(org.bukkit.plugin.java.JavaPlugin plugin) Ensures the default configuration exists and resolves the effective Relay settings.
-
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 readIllegalArgumentException- if the resolved configuration is invalid
-