Merge pull request #60 from Firepup6500/master

Don't add blank lines to chat and logs when mcMMO is enabled
This commit is contained in:
Chris 2024-01-18 17:08:29 -07:00 committed by GitHub
commit 3d13fe57c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -45,7 +45,9 @@ public class McMMOChatHook {
if (mcMMOPlugin != null) {
plugin.logDebug("[mcMMOChatHook:sendAdminMessage]: " + message);
message = LocaleLoader.getTextComponent("Chat.Style.Admin", message).content();
plugin.broadcastToGame(message, "", "mcmmo.chat.adminchat");
if (message != null && message != "") {
plugin.broadcastToGame(message, "", "mcmmo.chat.adminchat");
}
}
}