mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2025-06-29 19:46:42 +00:00
removal of aero
This commit is contained in:
@ -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");
|
||||
|
@ -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");
|
||||
|
Reference in New Issue
Block a user