From 07eda3c245534cd41feb9acbedbed84246ca17d9 Mon Sep 17 00:00:00 2001 From: Boosik Date: Thu, 4 Apr 2013 14:54:15 +0200 Subject: [PATCH] Possible fix for AsyncPlayerChatEvent exception. --- .../boosCooldown/boosCoolDownListener.class | Bin 6770 -> 6798 bytes .../boosCooldown/boosCoolDownListener.java | 3 +++ 2 files changed, 3 insertions(+) diff --git a/bin/cz/boosik/boosCooldown/boosCoolDownListener.class b/bin/cz/boosik/boosCooldown/boosCoolDownListener.class index 02c999cbdf98b5560961f9840c60e1a100727169..ae4bfaac2bacc231738e82365f6632a7c9c9d121 100644 GIT binary patch delta 352 zcmWlV$xA|E6vcm^K7AQsl!Cq>8pJkAi%7_#D1r*YW@uPM;i82>WRuxo1x1@|coZ~H zv}{+KsDG<%lX|vjWt$iU66}(qNSZx*#6EF=eTFz-m=dELkr5}v zX^xrWgn3R`=8PQYngt`+l}LmLixstIA{cqDOq!?+J+jUkN6M=JOR_9tsdYiY^4cgN z%K|$ZbEx(vtUqP*+ZfyUY-aSlHZAZ=%($~oE_0zHl&R*Dpjan{xx(R^MzNV2;<&VN etI>BPxu;zx=@3(57mxJvq+OpGOb&N}G; delta 324 zcmWlU%PvDv7)IB2PPMji|E+&Fg5T-yOsZ#!D6PQ0|6|--!q~0&oU0tmM#J4yzFwe9ug63v z5u;2yCvKjHv%m+7e6q?{=z9nM DrROqa diff --git a/src/cz/boosik/boosCooldown/boosCoolDownListener.java b/src/cz/boosik/boosCooldown/boosCoolDownListener.java index 06ee83b..016cb75 100644 --- a/src/cz/boosik/boosCooldown/boosCoolDownListener.java +++ b/src/cz/boosik/boosCooldown/boosCoolDownListener.java @@ -114,6 +114,9 @@ public class boosCoolDownListener implements Listener { String temp = "globalchat"; double price = 0; Player player = event.getPlayer(); + if (!boosConfigManager.getCommands(player).contains("globalchat")){ + return; + } int cooldownTime = boosConfigManager.getCoolDown(temp, player); if (chatMessage.startsWith("!")) { if (!boosCoolDownManager.checkCoolDownOK(player, temp, temp,