allowGameMessage
boolean allowGameMessage(net.minecraft.server.MinecraftServer server,
net.minecraft.text.Text message,
boolean overlay)
Called when the server broadcasts a game message to all players. Game messages
include death messages, join/leave messages, and advancement messages. Returning
false
prevents the message from being broadcast and the
ServerMessageEvents.GAME_MESSAGE event
from triggering.
- Parameters:
server - the server that sent the message
message - the broadcast message
overlay - true when the message is an overlay
- Returns:
true if the message should be broadcast, otherwise false