mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-01 05:57:09 +00:00
25 lines
657 B
Java
25 lines
657 B
Java
package me.totalfreedom.totalfreedommod;
|
|
|
|
import me.totalfreedom.totalfreedommod.util.FLog;
|
|
import org.bukkit.Server;
|
|
import org.bukkit.event.Listener;
|
|
|
|
public abstract class FreedomService implements Listener
|
|
{
|
|
protected final TotalFreedomMod plugin;
|
|
protected final Server server;
|
|
protected final FLog logger;
|
|
|
|
public FreedomService()
|
|
{
|
|
plugin = TotalFreedomMod.getPlugin();
|
|
server = plugin.getServer();
|
|
logger = new FLog();
|
|
plugin.getServer().getPluginManager().registerEvents(this, plugin);
|
|
plugin.fsh.add(this);
|
|
}
|
|
|
|
public abstract void onStart();
|
|
public abstract void onStop();
|
|
}
|