teamMsg

fun teamMsg(entity: Entity, playerTeam: PlayerTeam, list: MutableList<ServerPlayer>, playerChatMessage: PlayerChatMessage, commandSourceStack: CommandSourceStack = requireServer().createCommandSourceStack())

Send a team chat message to a list of players with filtering and formatting.

Parameters

entity

source entity (sender)

playerTeam

team being messaged

list

recipients

playerChatMessage

message content

commandSourceStack

command source used for formatting and filtering