add /joblist

This commit is contained in:
hydrant
2019-05-16 15:47:46 +02:00
parent 74e3232c7d
commit 5b014d6668

View File

@@ -14,6 +14,7 @@ using System.Text.RegularExpressions;
using ReallifeGamemode.Server.Classes;
using ReallifeGamemode.Server.Factions.Medic;
using ReallifeGamemode.Server.Models;
using ReallifeGamemode.Server.Job;
/**
* @overview Life of German Reallife - Admin Commands (Admin.cs)
@@ -282,6 +283,22 @@ namespace ReallifeGamemode.Server.Commands
player.SendChatMessage(b.Id.ToString().PadRight(3) + " | " + b.Name + (b is CarDealerBusinessBase ? " | Autohaus" : ""));
}
}
[Command("joblist", "~m~Benutzung: ~s~/joblist")]
public void CmdAdminJoblist(Client player)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
{
ChatService.NotAuthorized(player);
return;
}
player.SendChatMessage("~m~__________ ~s~Jobs ~m~__________");
foreach (JobBase job in JobManager.GetJobs())
{
player.SendChatMessage(job.Id.ToString().PadRight(3) + " | " + job.Name);
}
}
#endregion
#region ALevel1
[Command("a", "~m~Benutzung: ~s~/a [Nachricht]", GreedyArg = true)]