mirror of
https://github.com/LordBoos/boosCooldowns.git
synced 2024-11-29 14:16:04 +01:00
Possible fix for AsyncPlayerChatEvent exception.
This commit is contained in:
parent
1c09117813
commit
07eda3c245
Binary file not shown.
@ -114,6 +114,9 @@ public class boosCoolDownListener implements Listener {
|
|||||||
String temp = "globalchat";
|
String temp = "globalchat";
|
||||||
double price = 0;
|
double price = 0;
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
|
if (!boosConfigManager.getCommands(player).contains("globalchat")){
|
||||||
|
return;
|
||||||
|
}
|
||||||
int cooldownTime = boosConfigManager.getCoolDown(temp, player);
|
int cooldownTime = boosConfigManager.getCoolDown(temp, player);
|
||||||
if (chatMessage.startsWith("!")) {
|
if (chatMessage.startsWith("!")) {
|
||||||
if (!boosCoolDownManager.checkCoolDownOK(player, temp, temp,
|
if (!boosCoolDownManager.checkCoolDownOK(player, temp, temp,
|
||||||
|
Loading…
Reference in New Issue
Block a user