TotalFreedomMod/src/main/java/me/totalfreedom/totalfreedommod/FreedomService.java

25 lines
657 B
Java
Raw Normal View History

package me.totalfreedom.totalfreedommod;
2020-07-01 01:51:06 +00:00
import me.totalfreedom.totalfreedommod.util.FLog;
import org.bukkit.Server;
import org.bukkit.event.Listener;
2020-07-01 01:51:06 +00:00
public abstract class FreedomService implements Listener
{
2020-07-01 01:51:06 +00:00
protected final TotalFreedomMod plugin;
protected final Server server;
protected final FLog logger;
2020-07-01 01:51:06 +00:00
public FreedomService()
{
2020-07-01 01:51:06 +00:00
plugin = TotalFreedomMod.getPlugin();
server = plugin.getServer();
logger = new FLog();
plugin.getServer().getPluginManager().registerEvents(this, plugin);
plugin.fsh.add(this);
}
2020-07-01 01:51:06 +00:00
public abstract void onStart();
public abstract void onStop();
}