chat-nachrichten vereinheitlicht/aufgeräumt/...

/pm, /skick, /kick, /warn, /ip, /ban und /unban
This commit is contained in:
Luke
2021-05-07 16:32:34 +02:00
parent 659190ebd0
commit 111a508b91
2 changed files with 13 additions and 13 deletions

View File

@@ -289,7 +289,7 @@ namespace ReallifeGamemode.Server.Extensions
if (mins == 0)
{
ChatService.Broadcast("!{#FF4040}[BAN] " + user.Name + " wurde von " + admin.Name + " permanent gebannt. [" + reason + "]");
ChatService.Broadcast("!{#FF4040}[BAN] ~w~" + user.Name + " wurde von " + admin.Name + " permanent gebannt (Grund: " + reason + ").");
banUser = new Ban { UserId = user.Id, Reason = reason, BannedBy = admin.Name, Applied = unixTimestamp, UntilDateTime = unixTimestamp };
user.Player?.Kick();
@@ -298,7 +298,7 @@ namespace ReallifeGamemode.Server.Extensions
}
else
{
ChatService.Broadcast("!{#FF4040}[BAN] " + user.Name + " wurde von " + admin.Name + " für " + mins + " Minuten gebannt. [" + reason + "]");
ChatService.Broadcast("!{#FF4040}[BAN] ~w~" + user.Name + " wurde von " + admin.Name + " für " + mins + " Minute(n) gebannt (Grund: " + reason + ").");
banUser = new Ban { UserId = user.Id, Reason = reason, BannedBy = admin.Name, Applied = unixTimestamp, UntilDateTime = unixTimestamp + mins * 60 };
user.Player?.Kick();
}