Search in sources :

Example 1 with Permission

use of uk.co.oliwali.HawkEye.util.Permission 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!");
}
Also used : PluginManager(org.bukkit.plugin.PluginManager) Config(uk.co.oliwali.HawkEye.util.Config) Permission(uk.co.oliwali.HawkEye.util.Permission) DataManager(uk.co.oliwali.HawkEye.database.DataManager)

Aggregations

PluginManager (org.bukkit.plugin.PluginManager)1 DataManager (uk.co.oliwali.HawkEye.database.DataManager)1 Config (uk.co.oliwali.HawkEye.util.Config)1 Permission (uk.co.oliwali.HawkEye.util.Permission)1