From 3e9bb638945c95adcc199f32cf358ba2070d1347 Mon Sep 17 00:00:00 2001 From: Max Lee Date: Fri, 3 Apr 2015 01:39:08 +0200 Subject: [PATCH] We are working with tasks here. --- .../com/lishid/openinv/commands/OpenEnderPluginCommand.java | 5 +++-- .../com/lishid/openinv/commands/OpenInvPluginCommand.java | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/lishid/openinv/commands/OpenEnderPluginCommand.java b/src/main/java/com/lishid/openinv/commands/OpenEnderPluginCommand.java index d35981e..82c492a 100644 --- a/src/main/java/com/lishid/openinv/commands/OpenEnderPluginCommand.java +++ b/src/main/java/com/lishid/openinv/commands/OpenEnderPluginCommand.java @@ -16,7 +16,8 @@ package com.lishid.openinv.commands; -import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; import org.bukkit.Bukkit; import org.bukkit.ChatColor; @@ -32,7 +33,7 @@ import com.lishid.openinv.internal.InternalAccessor; public class OpenEnderPluginCommand implements CommandExecutor { private final OpenInv plugin; - public static HashMap openEnderHistory = new HashMap(); + public static Map openEnderHistory = new ConcurrentHashMap(); public OpenEnderPluginCommand(OpenInv plugin) { this.plugin = plugin; diff --git a/src/main/java/com/lishid/openinv/commands/OpenInvPluginCommand.java b/src/main/java/com/lishid/openinv/commands/OpenInvPluginCommand.java index 45fc82f..b2bcd88 100644 --- a/src/main/java/com/lishid/openinv/commands/OpenInvPluginCommand.java +++ b/src/main/java/com/lishid/openinv/commands/OpenInvPluginCommand.java @@ -16,7 +16,8 @@ package com.lishid.openinv.commands; -import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; import org.bukkit.Bukkit; import org.bukkit.ChatColor; @@ -32,7 +33,7 @@ import com.lishid.openinv.internal.InternalAccessor; public class OpenInvPluginCommand implements CommandExecutor { private final OpenInv plugin; - public static HashMap openInvHistory = new HashMap(); + public static Map openInvHistory = new ConcurrentHashMap(); public OpenInvPluginCommand(OpenInv plugin) { this.plugin = plugin;