We are working with tasks here.

This commit is contained in:
Max Lee 2015-04-03 01:39:08 +02:00
parent dce86d9c69
commit 3e9bb63894
2 changed files with 6 additions and 4 deletions

View file

@ -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<Player, String> openEnderHistory = new HashMap<Player, String>();
public static Map<Player, String> openEnderHistory = new ConcurrentHashMap<Player, String>();
public OpenEnderPluginCommand(OpenInv plugin) {
this.plugin = plugin;

View file

@ -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<Player, String> openInvHistory = new HashMap<Player, String>();
public static Map<Player, String> openInvHistory = new ConcurrentHashMap<Player, String>();
public OpenInvPluginCommand(OpenInv plugin) {
this.plugin = plugin;