Beispiel #1
0
 @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()));
   }
 }
Beispiel #2
0
 public void saveMap() {
   HMapSL.save(plugin.getHUDEnable(), hudMap.getPath());
 }