mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-16 20:36:12 +00:00
5c0f77c7c5
Lombok implementation removal. I have also gone through and replaced things with inline methods and variables, lambdas, and simplified loops down, removed unnecessary guard clauses, and overall cleaned up every single class. This took a long time, please do remember to follow proper naming conventions, don't include unnecessary guard clauses, follow exception rules and comment rules, and please PLEASE remember to use the DIAMOND OPERATOR rather than just inferring RAW TYPES!!! Thank you!!
27 lines
705 B
Java
27 lines
705 B
Java
package me.totalfreedom.totalfreedommod;
|
|
|
|
import java.util.logging.Logger;
|
|
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 Logger logger;
|
|
|
|
public FreedomService()
|
|
{
|
|
plugin = TotalFreedomMod.getPlugin();
|
|
server = plugin.getServer();
|
|
logger = FLog.getPluginLogger();
|
|
plugin.getServer().getPluginManager().registerEvents(this, plugin);
|
|
plugin.fsh.add(this);
|
|
}
|
|
|
|
public abstract void onStart();
|
|
|
|
public abstract void onStop();
|
|
}
|