@Override public void onEnable() { packages = file.load(); PluginDescriptionFile pdfFile = this.getDescription(); System.out.println(pdfFile.getName() + " version " + pdfFile.getVersion() + " is enabled!"); }
protected void reloadPackages() { HashMap<String, Package> newPackages = file.load(); for (Map.Entry<String, Package> item : newPackages.entrySet()) { if (packages.containsKey(item.getKey())) { packages.get(item.getKey()).update(item.getValue()); } else { packages.put(item.getKey(), item.getValue()); } } }