diff --git a/ReallifeGamemode.Server/Commands/AdminCommands.cs b/ReallifeGamemode.Server/Commands/AdminCommands.cs index 6f11d844..286060c0 100644 --- a/ReallifeGamemode.Server/Commands/AdminCommands.cs +++ b/ReallifeGamemode.Server/Commands/AdminCommands.cs @@ -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)]