Ignore empty mcMMO broadcast messages

This commit is contained in:
Firepup6500 2024-01-17 22:03:51 -06:00
parent 6e5683b6b4
commit 0c5254919e

View File

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