mirror of
https://github.com/lucko/LuckPerms.git
synced 2025-09-02 19:02:33 +02:00
Load configuration from env or system props (#3294)
This commit is contained in:
@@ -34,7 +34,6 @@ import net.md_5.bungee.config.YamlConfiguration;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -80,16 +79,6 @@ public class BungeeConfigAdapter implements ConfigurationAdapter {
|
||||
return Optional.ofNullable(this.configuration.getStringList(path)).orElse(def);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getKeys(String path, List<String> def) {
|
||||
Configuration section = this.configuration.getSection(path);
|
||||
if (section == null) {
|
||||
return def;
|
||||
}
|
||||
|
||||
return Optional.of((List<String>) new ArrayList<>(section.getKeys())).orElse(def);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, String> getStringMap(String path, Map<String, String> def) {
|
||||
Map<String, String> map = new HashMap<>();
|
||||
|
Reference in New Issue
Block a user