Bump version

Add an overloaded set function that replaces existing key
This commit is contained in:
dimaguy 2024-10-18 13:47:57 +01:00
parent d5be87ac61
commit f814f8151c
2 changed files with 7 additions and 1 deletions

View file

@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10
loader_version=0.16.5 loader_version=0.16.5
# Mod Properties # Mod Properties
mod_version=1.10.1 mod_version=1.10.2
maven_group=cc.reconnected maven_group=cc.reconnected
archives_base_name=rcc-server archives_base_name=rcc-server

View file

@ -88,6 +88,12 @@ public class PlayerData {
}); });
} }
@SuppressWarnings("UnusedReturnValue")
public CompletableFuture<Void> set(String key, @Nullable String value, boolean replace) {
if (replace) delete(key);
return set(key, value);
}
public @Nullable String get(String key) { public @Nullable String get(String key) {
if (!nodes.containsKey(nodePrefix + "." + key)) if (!nodes.containsKey(nodePrefix + "." + key))
return null; return null;