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) {