diff --git a/src/main/java/org/maxgamer/QuickShop/Shop/ShopManager.java b/src/main/java/org/maxgamer/QuickShop/Shop/ShopManager.java index f193f50..62f2e94 100644 --- a/src/main/java/org/maxgamer/QuickShop/Shop/ShopManager.java +++ b/src/main/java/org/maxgamer/QuickShop/Shop/ShopManager.java @@ -18,10 +18,11 @@ import java.util.HashMap; import java.util.Iterator; import java.util.NoSuchElementException; import java.util.Set; +import java.util.concurrent.ConcurrentHashMap; public class ShopManager { - private final HashMap actions = new HashMap<>(); - + + private final Map actions = new ConcurrentHashMap(); private final QuickShop plugin; private final HashMap>> shops = new HashMap<>(); @@ -126,7 +127,7 @@ public class ShopManager { * @return Returns the HashMap. Info contains what * their last question etc was. */ - public HashMap getActions() { + public Map getActions() { return this.actions; } @@ -205,7 +206,7 @@ public class ShopManager { public void handleChat(final Player p, final String msgs) { final String message = ChatColor.stripColor(msgs); - final HashMap actions = getActions(); + final Map actions = getActions(); // They wanted to do something. final Info info = actions.remove(p.getName()); if (info == null) { return; // multithreaded means this can happen