2016-03-01 16:47:01 +00:00
|
|
|
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;
|
2016-03-01 16:47:01 +00:00
|
|
|
|
2020-07-01 01:51:06 +00:00
|
|
|
public abstract class FreedomService implements Listener
|
2016-03-01 16:47:01 +00:00
|
|
|
{
|
2020-07-01 01:51:06 +00:00
|
|
|
protected final TotalFreedomMod plugin;
|
|
|
|
protected final Server server;
|
|
|
|
protected final FLog logger;
|
2016-03-01 16:47:01 +00:00
|
|
|
|
2020-07-01 01:51:06 +00:00
|
|
|
public FreedomService()
|
2016-03-01 16:47:01 +00:00
|
|
|
{
|
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);
|
2016-03-01 16:47:01 +00:00
|
|
|
}
|
|
|
|
|
2020-07-01 01:51:06 +00:00
|
|
|
public abstract void onStart();
|
|
|
|
public abstract void onStop();
|
2016-03-01 16:47:01 +00:00
|
|
|
}
|