weiphihpfwoeghjipwseg

This commit is contained in:
Super_
2020-10-31 01:00:20 -04:00
parent ccab0cf83c
commit 38ea672eb1
3 changed files with 5 additions and 3 deletions

View File

@ -1,51 +0,0 @@
package me.totalfreedom.plex.command;
import java.io.File;
import me.totalfreedom.plex.Plex;
import org.bukkit.configuration.file.YamlConfiguration;
public class MainConfig extends YamlConfiguration
{
private Plex plugin;
private File file;
public MainConfig(Plex plugin)
{
this.plugin = plugin;
this.file = new File(plugin.getDataFolder(), "config.yml");
if (!file.exists())
{
saveDefault();
}
}
public void load()
{
try
{
super.load(file);
}
catch (Exception ex)
{
ex.printStackTrace();
}
}
public void save()
{
try
{
super.save(file);
}
catch (Exception ex)
{
ex.printStackTrace();
}
}
private void saveDefault()
{
plugin.saveResource("config.yml", false);
}
}