Example #1
0
 @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);
 }
Example #2
0
 @Override
 public void onDisable() {
   config.save();
 }