hasGamemode

Adds a filter to only apply the message to a player with the specified game mode.

Return

The MessageBuilder instance for method chaining.

Parameters

gamemode

The name of the game mode to check.


fun hasGamemode(gamemode: GameMode): MessageBuilder

Adds a filter to only apply the message to a player with the specified game mode.

Return

The MessageBuilder instance for method chaining.

Parameters

gamemode

The game mode to check.