From e1e4f41118e691c34c0c9aa10df63242caf9f86d Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Wed, 20 Dec 2017 19:00:16 -0700 Subject: [PATCH 1/2] Made disable message for login use specifier --- TShockAPI/Bouncer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/Bouncer.cs b/TShockAPI/Bouncer.cs index a65f840c..01cff94b 100644 --- a/TShockAPI/Bouncer.cs +++ b/TShockAPI/Bouncer.cs @@ -861,7 +861,7 @@ namespace TShockAPI } else if (TShock.Config.RequireLogin && !args.Player.IsLoggedIn) { - args.Player.SendErrorMessage("Please /register or /login to play!"); + args.Player.SendErrorMessage("Account needed! Please {0}register or {0}login to play!", TShock.Config.CommandSpecifier); } else if (args.Player.IgnoreActionsForClearingTrashCan) { From db633cfa9cb77ff06acd75dce1939d8baccdb524 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Wed, 20 Dec 2017 19:01:50 -0700 Subject: [PATCH 2/2] Update changelog for command specifier in messages --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30241bbb..ad0550f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,7 @@ This is the rolling changelog for TShock for Terraria. Use past tense when addin * Added `GetDataHandlers.PlaceItemFrame` hook and related arguments. (@hakusaro) * Added `TSPlayer.IsBouncerThrottled()`. (@hakusaro) * Added `TSPlayer.CheckIgnores()` and removed `TShock.CheckIgnores(TSPlayer)`. (@hakusaro) +* Fix message requiring login not using the command specifier set in the config file. (@hakusaro) ## TShock 4.3.25 * Fixed a critical exploit in the Terraria protocol that could cause massive unpreventable world corruption as well as a number of other problems. Thanks to @bartico6 for reporting. Fixed by the efforts of @QuiCM, @hakusaro, and tips in the right directioon from @bartico6.