From 197e08a937620398b400753672e134c1521bcf8d Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Thu, 1 Oct 2020 16:48:02 +0100 Subject: [PATCH] use ConcurrentHashMap --- .../worldedit/bukkit/BukkitPermissionAttachmentManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPermissionAttachmentManager.java b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPermissionAttachmentManager.java index e3069c78e..fdcf408ea 100644 --- a/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPermissionAttachmentManager.java +++ b/worldedit-bukkit/src/main/java/com/sk89q/worldedit/bukkit/BukkitPermissionAttachmentManager.java @@ -1,15 +1,15 @@ package com.sk89q.worldedit.bukkit; import javax.annotation.Nullable; -import java.util.HashMap; import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; import org.bukkit.entity.Player; import org.bukkit.permissions.PermissionAttachment; public class BukkitPermissionAttachmentManager { private final WorldEditPlugin plugin; - private final Map attachments = new HashMap<>(); + private final Map attachments = new ConcurrentHashMap<>(); public BukkitPermissionAttachmentManager(WorldEditPlugin plugin) { this.plugin = plugin;