File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
SimpleAPI/src/main/java/com/bencodez/simpleapi/file Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .bencodez .simpleapi .file ;
2+
3+ import org .bukkit .configuration .ConfigurationSection ;
4+ import org .bukkit .plugin .java .JavaPlugin ;
5+
6+ import lombok .Getter ;
7+
8+ /**
9+ * The Class YMLFile.
10+ */
11+ public abstract class YMLConfig {
12+
13+ @ Getter
14+ private ConfigurationSection data ;
15+
16+ @ Getter
17+ private boolean failedToRead = false ;
18+
19+ @ Getter
20+ private JavaPlugin plugin ;
21+
22+ public YMLConfig (JavaPlugin plugin , ConfigurationSection data ) {
23+ this .data = data ;
24+ this .plugin = plugin ;
25+ }
26+
27+ public abstract void createSection (String key );
28+
29+ public abstract void saveData ();
30+
31+ public abstract void setValue (String path , Object value );
32+
33+ }
You can’t perform that action at this time.
0 commit comments