Advertisement
Guest User

Untitled

a guest
Oct 19th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.76 KB | None | 0 0
  1. public class PluginData {
  2.  
  3.     @Getter
  4.     private static final MessageUtil messageUtil = new MessageUtil();
  5.  
  6.     @Setter
  7.     @Getter
  8.     private final static Map<String, ProjectData> projectdata = new HashMap<>();
  9.  
  10.     public void onSave(File file) throws IOException {
  11.  
  12.         for (ProjectData data : projectdata.values()) {
  13.  
  14.             data.save(file);
  15.  
  16.         }
  17.  
  18.     }
  19.  
  20.     public void onLoad(File file, ConfigurationSection config) throws IOException, FileNotFoundException, InvalidConfigurationException {
  21.  
  22.         for (String name : config.getKeys(false)) {
  23.  
  24.            ConfigurationSection section = config.getConfigurationSection(name);
  25.            
  26.            
  27.            ProjectData d =  new ProjectData(file);
  28.         }
  29.  
  30.     }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement