use of uk.co.oliwali.HawkEye.util.Config in project HawkEye by oliverwoodings.
the class HawkEye method onEnable.
/**
* Starts up HawkEye initiation process
*/
@Override
public void onEnable() {
//Set up config and permissions
PluginManager pm = getServer().getPluginManager();
server = getServer();
name = this.getDescription().getName();
version = this.getDescription().getVersion();
Util.info("Starting HawkEye " + version + " initiation process...");
//Load config and permissions
config = new Config(this);
new Permission(this);
versionCheck();
new SessionManager();
//Initiate database connection
try {
new DataManager(this);
} catch (Exception e) {
Util.severe("Error initiating HawkEye database connection, disabling plugin");
pm.disablePlugin(this);
return;
}
checkDependencies(pm);
containerManager = new ContainerAccessManager();
registerListeners(pm);
registerCommands();
Util.info("Version " + version + " enabled!");
}
Aggregations