diff --git a/bukkit/src/main/java/me/lucko/luckperms/bukkit/inject/server/LuckPermsSubscriptionMap.java b/bukkit/src/main/java/me/lucko/luckperms/bukkit/inject/server/LuckPermsSubscriptionMap.java index 85a3eedfa..6207e9936 100644 --- a/bukkit/src/main/java/me/lucko/luckperms/bukkit/inject/server/LuckPermsSubscriptionMap.java +++ b/bukkit/src/main/java/me/lucko/luckperms/bukkit/inject/server/LuckPermsSubscriptionMap.java @@ -44,6 +44,7 @@ import java.util.Map; import java.util.Objects; import java.util.Set; import java.util.WeakHashMap; +import java.util.function.Function; import java.util.stream.Collectors; /** @@ -121,6 +122,21 @@ public final class LuckPermsSubscriptionMap extends HashMap> m) { + m.forEach(this::put); + } + + @Override + public Map putIfAbsent(String key, Map value) { + return get(key); + } + + @Override + public Map computeIfAbsent(String key, Function> mappingFunction) { + return get(key); + } + // if the key isn't null and is a string, #get will always return a value for it @Override public boolean containsKey(Object key) {