added /tc

This commit is contained in:
aviate
2019-07-21 22:15:39 +02:00
parent 22499a3f51
commit 4f4ba4319b

View File

@@ -293,6 +293,20 @@ namespace ReallifeGamemode.Server.Commands
} }
} }
[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")] [Command("joblist", "~m~Benutzung: ~s~/joblist")]
public void CmdAdminJoblist(Client player) public void CmdAdminJoblist(Client player)
{ {