added aduty system + added ChatService.BroadcastDutyAdmin + fixes in report system + added paaqos busdriver job

This commit is contained in:
2019-09-03 01:04:02 +02:00
parent 18364264f9
commit a6ff47d073
11 changed files with 471 additions and 27 deletions

View File

@@ -122,6 +122,28 @@ namespace ReallifeGamemode.Server.Commands
#endregion
#region Support
[Command("aduty", "~m~Benutzung: ~s~/aduty")]
public void CmdAduty(Client player)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
{
ChatService.NotAuthorized(player);
return;
}
if (!UserHelper.dutyAdmins.Contains(player))
{
UserHelper.dutyAdmins.Add(player);
ChatService.Broadcast("~y~" + player.Name + " hat sich zum Support angemeldet");
} else
{
UserHelper.dutyAdmins.Remove(player);
ChatService.Broadcast("~y~" + player.Name + " hat sich vom Support abgemeldet");
}
}
[Command("o", "~m~Benutzung: ~s~/o [Nachricht]", GreedyArg = true)]
public void CmdAdminO(Client player, string message)
{