Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ ProcessIncomingMessage()

void Terraria.Chat.Commands.PVPDeathCommand.ProcessIncomingMessage ( string text,
byte clientId )
inline

Implements Terraria.Chat.Commands.IChatCommand.

Definition at line 11 of file PVPDeathCommand.cs.

12 {
13 NetworkText text2 = NetworkText.FromKey("LegacyMultiplayer.24", Main.player[clientId].name, Main.player[clientId].numberOfDeathsPVP);
14 if (Main.player[clientId].numberOfDeathsPVP == 1)
15 {
16 text2 = NetworkText.FromKey("LegacyMultiplayer.26", Main.player[clientId].name, Main.player[clientId].numberOfDeathsPVP);
17 }
18 ChatHelper.BroadcastChatMessage(text2, RESPONSE_COLOR);
19 }
static NetworkText FromKey(string key, params object[] substitutions)

References Terraria.Chat.ChatHelper.BroadcastChatMessage(), Terraria.Localization.NetworkText.FromKey(), Terraria.Main.player, and Terraria.Chat.Commands.PVPDeathCommand.RESPONSE_COLOR.