add /joblist
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user