From 36bc1adf8334d64f6a8dfb96107b32758d3ac1fa Mon Sep 17 00:00:00 2001 From: KHobbits Date: Wed, 18 Jan 2012 23:08:40 +0000 Subject: Make sure to clean the chatStore. --- .../earth2me/essentials/chat/EssentialsChatPlayerListenerHighest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerHighest.java b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerHighest.java index 276715f31..35c140f6b 100644 --- a/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerHighest.java +++ b/EssentialsChat/src/com/earth2me/essentials/chat/EssentialsChatPlayerListenerHighest.java @@ -21,6 +21,7 @@ public class EssentialsChatPlayerListenerHighest extends EssentialsChatPlayer @Override public void onPlayerChat(final PlayerChatEvent event) { + final ChatStore chatStore = delChatStore(event); if (isAborted(event)) { return; @@ -29,6 +30,6 @@ public class EssentialsChatPlayerListenerHighest extends EssentialsChatPlayer /** * This file should handle charging the user for the action before returning control back */ - charge(event, getChatStore(event)); + charge(event, chatStore); } } -- cgit v1.2.3