Fixed messages showing empty line if no message is set.

This commit is contained in:
Boosik 2013-08-29 15:47:48 +02:00
parent 74d1fa77d9
commit c7ba601583
4 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,6 @@
name: boosCooldowns
main: cz.boosik.boosCooldown.BoosCoolDown
version: 3.7.1
version: 3.7.2
authors: [LordBoos (ingame name boosik)]
softdepend: [Vault]
description: >

View File

@ -80,7 +80,9 @@ public class BoosCoolDownListener implements Listener {
}
if (!event.isCancelled()) {
String msg = String.format(BoosConfigManager.getMessage(regexCommad, player));
boosChat.sendMessageToPlayer(player, msg);
if (!msg.equals("")) {
boosChat.sendMessageToPlayer(player, msg);
}
}
} else {
event.setCancelled(true);

View File

@ -1,6 +1,6 @@
name: boosCooldowns
main: cz.boosik.boosCooldown.BoosCoolDown
version: 3.7.1
version: 3.7.2
authors: [LordBoos (ingame name boosik)]
softdepend: [Vault]
description: >