From 4f4ba4319b3671c0ed741dbd021a0abb5a3bd926 Mon Sep 17 00:00:00 2001 From: aviate <40-aviate@users.noreply.development.life-of-german.org> Date: Sun, 21 Jul 2019 22:15:39 +0200 Subject: [PATCH] added /tc --- ReallifeGamemode.Server/Commands/AdminCommands.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index efccf455..76f90f72 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -292,7 +292,21 @@ namespace ReallifeGamemode.Server.Commands ChatService.SendMessage(player, b.Id.ToString().PadRight(3) + " | " + b.Name + (b is CarDealerBusinessBase ? " | Autohaus" : "")); } } + + [Command("tc", "~m~Benutzung: ~s~/tc [Nachricht]", GreedyArg = true)] + public void CmdAdminA(Client player, string message) + { + if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) + { + ChatService.NotAuthorized(player); + return; + } + message = Regex.Replace(message, "(~[a-zA-Z]~)|(!{(.*)})", ""); + + ChatService.BroadcastAdmin("~b~[TEAMCHAT]~s~ " + player.GetUser().AdminLevel.GetName() + " " + player.Name + "~w~: " + message, AdminLevel.SUPPORTER); + } + [Command("joblist", "~m~Benutzung: ~s~/joblist")] public void CmdAdminJoblist(Client player) {