removal of aero

This commit is contained in:
Super_
2020-06-30 21:51:06 -04:00
parent 9dad7c6d05
commit 9d71a7f4ae
104 changed files with 808 additions and 1010 deletions

View File

@ -5,12 +5,10 @@ import java.text.SimpleDateFormat;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;
import net.pravian.aero.base.ConfigLoadable;
import net.pravian.aero.base.ConfigSavable;
import net.pravian.aero.base.Validatable;
import me.totalfreedom.totalfreedommod.config.IConfig;
import org.bukkit.configuration.ConfigurationSection;
public class Punishment implements ConfigLoadable, ConfigSavable, Validatable
public class Punishment implements IConfig
{
public static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd \'at\' HH:mm:ss z");

View File

@ -5,9 +5,8 @@ import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import me.totalfreedom.totalfreedommod.FreedomService;
import me.totalfreedom.totalfreedommod.TotalFreedomMod;
import me.totalfreedom.totalfreedommod.config.YamlConfig;
import me.totalfreedom.totalfreedommod.util.FLog;
import net.pravian.aero.config.YamlConfig;
public class PunishmentList extends FreedomService
{
@ -18,14 +17,13 @@ public class PunishmentList extends FreedomService
//
private final YamlConfig config;
public PunishmentList(TotalFreedomMod plugin)
public PunishmentList()
{
super(plugin);
this.config = new YamlConfig(plugin, CONFIG_FILENAME);
}
@Override
protected void onStart()
public void onStart()
{
config.load();
@ -54,7 +52,7 @@ public class PunishmentList extends FreedomService
}
@Override
protected void onStop()
public void onStop()
{
saveAll();
logger.info("Saved " + punishments.size() + " player bans");