Apply fix from @punchready
This commit is contained in:
parent
2d095650cb
commit
9092cea7ef
2 changed files with 9 additions and 5 deletions
|
|
@ -18,6 +18,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin
|
||||||
* Updated server startup language to be more clear when encountering a fatal startup error. Now, the server gives more context as to what happened so that there's a better chance of people being able to help themselves. (@hakusaro)
|
* Updated server startup language to be more clear when encountering a fatal startup error. Now, the server gives more context as to what happened so that there's a better chance of people being able to help themselves. (@hakusaro)
|
||||||
* Added `-worldevil <type>` command line argument (@NotGeri)
|
* Added `-worldevil <type>` command line argument (@NotGeri)
|
||||||
* Added PlayerHasBuildPermission hook to PlayerHooks. (@AnzhelikaO, @Killia0)
|
* Added PlayerHasBuildPermission hook to PlayerHooks. (@AnzhelikaO, @Killia0)
|
||||||
|
* Prevent Server Broadcast to display prefix without a message. (@PackmanDude)
|
||||||
|
|
||||||
## TShock 4.5.17
|
## TShock 4.5.17
|
||||||
* Fixed duplicate characters (twins) after repeatedly logging in as the same character due to connection not being immediately closed during `NetHooks_NameCollision`. (@gohjoseph)
|
* Fixed duplicate characters (twins) after repeatedly logging in as the same character due to connection not being immediately closed during `NetHooks_NameCollision`. (@gohjoseph)
|
||||||
|
|
|
||||||
|
|
@ -1955,12 +1955,15 @@ namespace TShockAPI
|
||||||
|
|
||||||
private static void Broadcast(CommandArgs args)
|
private static void Broadcast(CommandArgs args)
|
||||||
{
|
{
|
||||||
string message = string.Join(" ", args.Parameters);
|
if (args.Parameters.Count > 0)
|
||||||
|
{
|
||||||
|
string message = string.Join(" ", args.Parameters);
|
||||||
|
|
||||||
TShock.Utils.Broadcast(
|
TShock.Utils.Broadcast(
|
||||||
"(Server Broadcast) " + message,
|
"(Server Broadcast) " + message,
|
||||||
Convert.ToByte(TShock.Config.Settings.BroadcastRGB[0]), Convert.ToByte(TShock.Config.Settings.BroadcastRGB[1]),
|
Convert.ToByte(TShock.Config.Settings.BroadcastRGB[0]), Convert.ToByte(TShock.Config.Settings.BroadcastRGB[1]),
|
||||||
Convert.ToByte(TShock.Config.Settings.BroadcastRGB[2]));
|
Convert.ToByte(TShock.Config.Settings.BroadcastRGB[2]));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void Off(CommandArgs args)
|
private static void Off(CommandArgs args)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue