Interface ServerMessageEvents.AllowGameMessage
- Enclosing class:
ServerMessageEvents
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanallowGameMessage(MinecraftServer server, Text message, boolean overlay) Called when the server broadcasts a game message to all players.
-
Method Details
-
allowGameMessage
Called when the server broadcasts a game message to all players. Game messages include death messages, join/leave messages, and advancement messages. Returningfalseprevents the message from being broadcast and theServerMessageEvents.GAME_MESSAGEevent from triggering.- Parameters:
server- the server that sent the messagemessage- the broadcast messageoverlay-truewhen the message is an overlay- Returns:
trueif the message should be broadcast, otherwisefalse
-