diff --git a/bukkit/src/main/java/io/github/rothes/protocolstringreplacer/replacer/ReplacerManager.java b/bukkit/src/main/java/io/github/rothes/protocolstringreplacer/replacer/ReplacerManager.java index 4c097f4..7982e4e 100644 --- a/bukkit/src/main/java/io/github/rothes/protocolstringreplacer/replacer/ReplacerManager.java +++ b/bukkit/src/main/java/io/github/rothes/protocolstringreplacer/replacer/ReplacerManager.java @@ -27,6 +27,7 @@ import java.util.List; import java.util.Map; import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; import java.util.function.BiPredicate; import java.util.regex.Pattern; import java.util.regex.PatternSyntaxException; @@ -37,7 +38,7 @@ public class ReplacerManager { private char papiHead; private char papiTail; private final List replacerConfigList = new ArrayList<>(); - private final HashMap cacheTable = new HashMap<>(); + private final ConcurrentHashMap cacheTable = new ConcurrentHashMap<>(); private PsrTask cleanTask; public static class HandledItemCache {