File tree Expand file tree Collapse file tree
src/main/java/cc/carm/lib/mineconfiguration/bukkit/source Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >mineconfiguration-parent</artifactId >
77 <groupId >cc.carm.lib</groupId >
8- <version >3.0.0 </version >
8+ <version >3.0.1 </version >
99 </parent >
1010 <modelVersion >4.0.0</modelVersion >
1111 <properties >
Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >mineconfiguration-parent</artifactId >
77 <groupId >cc.carm.lib</groupId >
8- <version >3.0.0 </version >
8+ <version >3.0.1 </version >
99 <relativePath >../../pom.xml</relativePath >
1010 </parent >
1111 <modelVersion >4.0.0</modelVersion >
Original file line number Diff line number Diff line change 66import org .jetbrains .annotations .Nullable ;
77import org .jetbrains .annotations .UnmodifiableView ;
88
9- import java .util .List ;
109import java .util .Map ;
1110import java .util .Set ;
1211
@@ -56,25 +55,27 @@ public void remove(@NotNull String path) {
5655 data ().set (path , null );
5756 }
5857
59- @ Override
60- public boolean contains (@ NotNull String path ) {
61- return data ().contains (path );
62- }
63-
64- @ Override
65- public @ Nullable List <?> getList (@ NotNull String path ) {
66- return data ().getList (path );
67- }
68-
6958 @ Override
7059 public @ Nullable ConfigureSection getSection (@ NotNull String path ) {
7160 Object value = get (path );
7261 if (value instanceof ConfigureSection ) {
7362 return (ConfigureSection ) value ;
63+ } else if (value instanceof ConfigurationSection ) {
64+ return new BukkitSection (source (), this , (ConfigurationSection ) value );
7465 }
7566 return null ;
7667 }
7768
69+ @ Override
70+ public @ NotNull ConfigureSection createSection (@ NotNull Map <?, ?> data ) {
71+ throw new UnsupportedOperationException ("BukkitSection does not support this operation" );
72+ }
73+
74+ @ Override
75+ public @ NotNull ConfigureSection computeSection (@ NotNull String path ) {
76+ return new BukkitSection (source (), this , data .createSection (path ));
77+ }
78+
7879 @ Override
7980 public @ Nullable Object get (@ NotNull String path ) {
8081 Object value = data ().get (path );
Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >mineconfiguration-parent</artifactId >
77 <groupId >cc.carm.lib</groupId >
8- <version >3.0.0 </version >
8+ <version >3.0.1 </version >
99 <relativePath >../../pom.xml</relativePath >
1010 </parent >
1111 <modelVersion >4.0.0</modelVersion >
Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >mineconfiguration-parent</artifactId >
77 <groupId >cc.carm.lib</groupId >
8- <version >3.0.0 </version >
8+ <version >3.0.1 </version >
99 <relativePath >../../pom.xml</relativePath >
1010 </parent >
1111 <modelVersion >4.0.0</modelVersion >
Original file line number Diff line number Diff line change 1010 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
1111 <maven .compiler.encoding>UTF-8</maven .compiler.encoding>
1212
13- <deps .easyconfifuration.version>4.0.2 </deps .easyconfifuration.version>
13+ <deps .easyconfifuration.version>4.0.6 </deps .easyconfifuration.version>
1414 <deps .yamlcommentwriter.version>1.2.0</deps .yamlcommentwriter.version>
1515 <deps .easyplugin.version>1.5.12</deps .easyplugin.version>
1616 </properties >
1717
1818 <groupId >cc.carm.lib</groupId >
1919 <artifactId >mineconfiguration-parent</artifactId >
20- <version >3.0.0 </version >
20+ <version >3.0.1 </version >
2121 <packaging >pom</packaging >
2222 <modules >
2323 <module >common</module >
You can’t perform that action at this time.
0 commit comments