mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-11 19:00:37 +01:00
Check for command message setting being empty
This commit is contained in:
parent
a944c3ca9c
commit
cac35409c9
@ -243,7 +243,9 @@ public class CommandTrait extends Trait {
|
||||
|
||||
private void sendErrorMessage(Player player, CommandTraitMessages msg, Object... objects) {
|
||||
String messageRaw = msg.setting.asString();
|
||||
Messaging.send(player, Translator.format(messageRaw, objects));
|
||||
if (messageRaw != null && messageRaw.trim().length() > 0) {
|
||||
Messaging.send(player, Translator.format(messageRaw, objects));
|
||||
}
|
||||
}
|
||||
|
||||
public void setCost(double cost) {
|
||||
|
Loading…
Reference in New Issue
Block a user