updated chatformat to include groupname
This commit is contained in:
parent
e0094ae642
commit
636ddb2aba
2 changed files with 3 additions and 3 deletions
|
|
@ -183,8 +183,8 @@ namespace TShockAPI
|
||||||
[Description("Disables snow ball projectiles from spawning")] //Change this to stop the tile from spawning
|
[Description("Disables snow ball projectiles from spawning")] //Change this to stop the tile from spawning
|
||||||
public bool DisableSnowBalls = false;
|
public bool DisableSnowBalls = false;
|
||||||
|
|
||||||
[Description("Change ingame chat format, {0} = Group Prefix, {1} = Player Name, {2} = Group Suffix, {3} = Chat Message")]
|
[Description("Change ingame chat format, {0} = Group Name, {1} = Group Prefix, {2} = Player Name, {3} = Group Suffix, {4} = Chat Message")]
|
||||||
public string ChatFormat = "{0}{1}{2} {3}";
|
public string ChatFormat = "{1}{2}{3} {4}";
|
||||||
|
|
||||||
public static ConfigFile Read(string path)
|
public static ConfigFile Read(string path)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -560,7 +560,7 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
TShock.Utils.Broadcast(String.Format(TShock.Config.ChatFormat, tsplr.Group.Prefix, tsplr.Name, tsplr.Group.Suffix, text), tsplr.Group.R, tsplr.Group.G, tsplr.Group.B);
|
TShock.Utils.Broadcast(String.Format(TShock.Config.ChatFormat, tsplr.Group.Name, tsplr.Group.Prefix, tsplr.Name, tsplr.Group.Suffix, text), tsplr.Group.R, tsplr.Group.G, tsplr.Group.B);
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue