mirror of
https://github.com/Multiverse/Multiverse-Core.git
synced 2025-01-22 08:11:45 +01:00
Add MVCoreConfigProvider#getConfigUnsafe.
This commit is contained in:
parent
a57a83a047
commit
015c58421d
@ -14,6 +14,7 @@ import org.bukkit.configuration.file.YamlConfiguration;
|
|||||||
import org.bukkit.plugin.Plugin;
|
import org.bukkit.plugin.Plugin;
|
||||||
import org.bukkit.plugin.PluginManager;
|
import org.bukkit.plugin.PluginManager;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
import org.jetbrains.annotations.Nullable;
|
||||||
import org.jvnet.hk2.annotations.Service;
|
import org.jvnet.hk2.annotations.Service;
|
||||||
|
|
||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
@ -49,6 +50,17 @@ public final class MVCoreConfigProvider {
|
|||||||
return Option.of(config);
|
return Option.of(config);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Provided to make porting code to use DI easier for now.
|
||||||
|
*
|
||||||
|
* @deprecated Use the {@link #getConfig()} method instead when possible.
|
||||||
|
*/
|
||||||
|
@Nullable
|
||||||
|
@Deprecated
|
||||||
|
public MVConfig getConfigUnsafe() {
|
||||||
|
return config;
|
||||||
|
}
|
||||||
|
|
||||||
public void loadConfigs() {
|
public void loadConfigs() {
|
||||||
multiverseConfig = loadConfigWithDefaults();
|
multiverseConfig = loadConfigWithDefaults();
|
||||||
setConfigOptions(multiverseConfig);
|
setConfigOptions(multiverseConfig);
|
||||||
|
Loading…
Reference in New Issue
Block a user