mirror of
https://github.com/LordBoos/boosCooldowns.git
synced 2024-11-26 04:25:20 +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";
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user