Bump version
Add an overloaded set function that replaces existing key
This commit is contained in:
parent
d5be87ac61
commit
f814f8151c
2 changed files with 7 additions and 1 deletions
|
@ -9,7 +9,7 @@ yarn_mappings=1.20.1+build.10
|
|||
loader_version=0.16.5
|
||||
|
||||
# Mod Properties
|
||||
mod_version=1.10.1
|
||||
mod_version=1.10.2
|
||||
maven_group=cc.reconnected
|
||||
archives_base_name=rcc-server
|
||||
|
||||
|
|
|
@ -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) {
|
||||
if (!nodes.containsKey(nodePrefix + "." + key))
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue