fix: Update LabelTo, SendMessage, etc to Interpolated Strings (#1283)
This commit is contained in:
parent
0facd73842
commit
537526a328
94 changed files with 514 additions and 769 deletions
|
|
@ -145,7 +145,7 @@ namespace Server.Misc
|
|||
|
||||
if (shouldKick)
|
||||
{
|
||||
state.Mobile.SendMessage(0x22, "You will be disconnected in {0} seconds.", KickDelay.TotalSeconds);
|
||||
state.Mobile.SendMessage(0x22, $"You will be disconnected in {KickDelay.TotalSeconds} seconds.");
|
||||
Timer.StartTimer(KickDelay, () => OnKick(state));
|
||||
return;
|
||||
}
|
||||
|
|
@ -189,9 +189,7 @@ namespace Server.Misc
|
|||
if (_invalidClientResponse == InvalidClientResponse.LenientKick)
|
||||
{
|
||||
from.SendMessage(
|
||||
"Invalid clients will be kicked after {0} days of character age and {1} hours of play time",
|
||||
_ageLeniency,
|
||||
_gameTimeLeniency
|
||||
$"Invalid clients will be kicked after {_ageLeniency} days of character age and {_gameTimeLeniency} hours of play time"
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue