Fixed config.yml bug

This commit is contained in:
Auxilor
2021-12-14 08:51:33 +00:00
parent 4cf45795d6
commit c1b673e30c
2 changed files with 2 additions and 7 deletions

View File

@@ -3,7 +3,6 @@ package com.willfp.eco.core;
import com.willfp.eco.core.command.impl.PluginCommand;
import com.willfp.eco.core.config.base.ConfigYml;
import com.willfp.eco.core.config.base.LangYml;
import com.willfp.eco.core.config.interfaces.LoadableConfig;
import com.willfp.eco.core.config.updating.ConfigHandler;
import com.willfp.eco.core.display.Display;
import com.willfp.eco.core.display.DisplayModule;
@@ -92,7 +91,7 @@ public abstract class EcoPlugin extends JavaPlugin implements PluginLike {
/**
* Config.yml.
*/
private final LoadableConfig configYml;
private final ConfigYml configYml;
/**
* Lang.yml.
@@ -785,7 +784,7 @@ public abstract class EcoPlugin extends JavaPlugin implements PluginLike {
*
* @return config.yml.
*/
public LoadableConfig getConfigYml() {
public ConfigYml getConfigYml() {
return this.configYml;
}

View File

@@ -34,9 +34,7 @@ public class ConfigYml extends BaseConfig {
*
* @param plugin The plugin.
* @param name The config name.
* @deprecated Rename config.yml by using a custom config, e.g. {@link BaseConfig}.
*/
@Deprecated
public ConfigYml(@NotNull final EcoPlugin plugin,
@NotNull final String name) {
super(name, plugin, true, ConfigType.YAML);
@@ -48,9 +46,7 @@ public class ConfigYml extends BaseConfig {
* @param plugin The plugin.
* @param name The config name.
* @param removeUnused Remove unused.
* @deprecated Rename config.yml by using a custom config, e.g. {@link BaseConfig}.
*/
@Deprecated
public ConfigYml(@NotNull final EcoPlugin plugin,
@NotNull final String name,
final boolean removeUnused) {