mirror of
https://github.com/CarmJos/MineConfiguration.git
synced 2026-06-04 13:55:03 +08:00
chore(deps): Update EasyConfiguration
This commit is contained in:
+5
-1
@@ -23,7 +23,6 @@ public class BukkitSection implements ConfigureSection {
|
|||||||
this.data = data;
|
this.data = data;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public @NotNull BukkitSource source() {
|
public @NotNull BukkitSource source() {
|
||||||
return this.source;
|
return this.source;
|
||||||
}
|
}
|
||||||
@@ -52,6 +51,11 @@ public class BukkitSection implements ConfigureSection {
|
|||||||
data().set(path, value);
|
data().set(path, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void remove(@NotNull String path) {
|
||||||
|
data().set(path, null);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean contains(@NotNull String path) {
|
public boolean contains(@NotNull String path) {
|
||||||
return data().contains(path);
|
return data().contains(path);
|
||||||
|
|||||||
+1
-1
@@ -55,7 +55,7 @@ public class BukkitSource extends FileConfigSource<BukkitSection, YamlConfigurat
|
|||||||
@Override
|
@Override
|
||||||
public void save() throws Exception {
|
public void save() throws Exception {
|
||||||
CommentedYAMLWriter writer = new CommentedYAMLWriter(
|
CommentedYAMLWriter writer = new CommentedYAMLWriter(
|
||||||
String.valueOf(this.separator()), 2,
|
String.valueOf(this.pathSeparator()), 2,
|
||||||
holder.options().get(CommentableOptions.COMMENT_EMPTY_VALUE)
|
holder.options().get(CommentableOptions.COMMENT_EMPTY_VALUE)
|
||||||
);
|
);
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user