@Override public void onPluginEnable(PluginEnableEvent event) { // if 3co is null, get the plugin 3co and if that isn't null let the log know about it, and set // the plugin.eco variable to the plugin 3co if (plugin.eco == null) { Plugin eco = plugin.getServer().getPluginManager().getPlugin("3co"); if (eco != null) { if (eco.isEnabled() && eco.getClass().getName().equals("me.ic3d.eco.ECO")) { plugin.eco = (ECO) eco; System.out.println("[3coShop] 3co found, hooking in!"); } } } }