Update TShockAPI/Commands.cs

Co-authored-by: punchready <22683812+punchready@users.noreply.github.com>
This commit is contained in:
Stargazing Koishi 2023-06-11 22:20:48 -07:00 committed by GitHub
parent 5bcde689d4
commit f66ad72e2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6462,7 +6462,7 @@ namespace TShockAPI
if (target == user)
user.SendSuccessMessage(GetString($"You buffed yourself with {TShock.Utils.GetBuffName(id)} ({TShock.Utils.GetBuffDescription(id)}) for {time} seconds."));
else
user.SendSuccessMessage(GetString($"You have buffed {user.Name} with {TShock.Utils.GetBuffName(id)} ({TShock.Utils.GetBuffDescription(id)}) for {time} seconds!"));
user.SendSuccessMessage(GetString($"You have buffed {target.Name} with {TShock.Utils.GetBuffName(id)} ({TShock.Utils.GetBuffDescription(id)}) for {time} seconds!"));
if (!args.Silent && target != user)
target.SendSuccessMessage(GetString($"{user.Name} has buffed you with {TShock.Utils.GetBuffName(id)} ({TShock.Utils.GetBuffDescription(id)}) for {time} seconds!"));
}