Skip to content

Commit 7820b14

Browse files
committed
build(deps): Update with EasyConfiguration
1 parent 3a1ad7f commit 7820b14

6 files changed

Lines changed: 18 additions & 17 deletions

File tree

common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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>

platform/bukkit/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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>

platform/bukkit/src/main/java/cc/carm/lib/mineconfiguration/bukkit/source/BukkitSection.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import org.jetbrains.annotations.Nullable;
77
import org.jetbrains.annotations.UnmodifiableView;
88

9-
import java.util.List;
109
import java.util.Map;
1110
import 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);

platform/bungee/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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>

platform/velocity/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
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>

0 commit comments

Comments
 (0)