Skip to content

Commit a2f5bfe

Browse files
Merge pull request #106 from Controllerdestiny/main
更新: Economics.RPG 聊天格式支持组名职业名
2 parents 717a410 + 41b639d commit a2f5bfe

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Economics.RPG/RPG.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ private void PlayerHooks_PlayerChat(PlayerChatEventArgs e)
4949
if (level != null && !string.IsNullOrEmpty(level.ChatFormat))
5050
{
5151
TShock.Utils.Broadcast(string.Format(level.ChatFormat,
52-
level.ChatPrefix,
53-
e.Player.Name,
54-
level.ChatSuffix,
52+
e.Player.Group.Name, //{0} 组名
53+
level.Name, //{1} 职业名
54+
level.ChatPrefix, //{2} 聊天前缀
55+
e.Player.Name, //{3} 玩家名
56+
level.ChatSuffix, //{4} 聊天后缀
5557
e.RawText),
5658
(byte)level.ChatRGB[0],
5759
(byte)level.ChatRGB[1],

0 commit comments

Comments
 (0)