@Override public void onEnable() { config = new PluginProperties(propertiesFile, dir); config.load(); PluginManager pm = getServer().getPluginManager(); if (!config.getBoolean("destroyBlocks", false)) pm.registerEvent(Event.Type.ENTITY_EXPLODE, this.entityListener, Priority.Normal, this); PluginDescriptionFile pdfFile = this.getDescription(); new CommandHandler(this, config); }
@Override public void onDisable() { config.save(); }