@SuppressWarnings("unchecked") public void loadMap() { hudMap = new File(plugin.getDataFolder(), "settings.bin"); if (!hudMap.exists()) { System.out.println("Making new settings file"); saveMap(); } else { plugin.setHUDEnable((HashMap<String, Boolean>) HMapSL.load(hudMap.getPath())); } }
public void saveMap() { HMapSL.save(plugin.getHUDEnable(), hudMap.getPath()); }