diff options
author | snowleo <schneeleo@gmail.com> | 2012-08-03 21:45:32 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2012-08-03 21:45:32 +0200 |
commit | 52702894af6b51f9f909bc73f58901e0f9e8c0b3 (patch) | |
tree | e9d44704786be676a85d54e2401b5b03147b4240 /EssentialsChat/src/com | |
parent | bd6614328bf848f6c52bbf80fef90ea0687b99b3 (diff) | |
download | Essentials-52702894af6b51f9f909bc73f58901e0f9e8c0b3.tar Essentials-52702894af6b51f9f909bc73f58901e0f9e8c0b3.tar.gz Essentials-52702894af6b51f9f909bc73f58901e0f9e8c0b3.tar.lz Essentials-52702894af6b51f9f909bc73f58901e0f9e8c0b3.tar.xz Essentials-52702894af6b51f9f909bc73f58901e0f9e8c0b3.zip |
Synchronized chatStore
Diffstat (limited to 'EssentialsChat/src/com')
-rw-r--r-- | EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java index 436bb55e5..3148fe0ff 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChat.java @@ -2,6 +2,7 @@ package com.earth2me.essentials.chat; import static com.earth2me.essentials.I18n._; import com.earth2me.essentials.IEssentials; +import java.util.Collections; import java.util.HashMap; import java.util.Map; import java.util.concurrent.ConcurrentSkipListMap; @@ -33,7 +34,7 @@ public class EssentialsChat extends JavaPlugin } chatListener = new ConcurrentSkipListMap<String, IEssentialsChatListener>(); - final Map<PlayerChatEvent, ChatStore> chatStore = new HashMap<PlayerChatEvent, ChatStore>(); + final Map<PlayerChatEvent, ChatStore> chatStore = Collections.synchronizedMap(new HashMap<PlayerChatEvent, ChatStore>()); final EssentialsChatPlayerListenerLowest playerListenerLowest = new EssentialsChatPlayerListenerLowest(getServer(), ess, chatListener, chatStore); |