Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PluginData {
- @Getter
- private static final MessageUtil messageUtil = new MessageUtil();
- @Setter
- @Getter
- private final static Map<String, ProjectData> projectdata = new HashMap<>();
- public void onSave(File file) throws IOException {
- for (ProjectData data : projectdata.values()) {
- data.save(file);
- }
- }
- public void onLoad(File file, ConfigurationSection config) throws IOException, FileNotFoundException, InvalidConfigurationException {
- for (String name : config.getKeys(false)) {
- ConfigurationSection section = config.getConfigurationSection(name);
- ProjectData d = new ProjectData(file);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement