Ejemplo n.º 1
0
  public void onDisable() {
    // NOTE: All registered events are automatically unregistered when a
    // plugin is disabled
    if (pricelist != null) {
      try {
        pricelist.close();
      } catch (Exception ex) {
        Log(Level.SEVERE, ex, false);
      }
    }
    if (signShop != null) {
      signShop.save();
      signShop.stopProtecting();
    }

    transactions = null;
    stock = null;
    pricelist = null;
    messenger = null;
    // config = null;
    signShop = null;

    logger.info("BetterShop now unloaded");
  }