added /tc
This commit is contained in:
@@ -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")]
|
||||
public void CmdAdminJoblist(Client player)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user