renamed important file

This commit is contained in:
2019-09-04 19:02:59 +02:00
parent c264bf0bf6
commit 79cd7143ff
4 changed files with 6 additions and 6 deletions

View File

@@ -37,9 +37,9 @@ namespace ReallifeGamemode.Server.Events
NAPI.Util.ConsoleOutput(player.Name + " Timeoutet");
}
if (UserHelper.dutyAdmins.Contains(player))
if (GlobalHelper.dutyAdmins.Contains(player))
{
UserHelper.dutyAdmins.Remove(player);
GlobalHelper.dutyAdmins.Remove(player);
}
JobBase job = JobManager.GetJob(player.GetUser().JobId ?? -1);

View File

@@ -174,13 +174,13 @@ namespace ReallifeGamemode.Server.Report
return;
}
}
if (UserHelper.dutyAdmins.Count == 0)
if (GlobalHelper.dutyAdmins.Count == 0)
{
ChatService.SendMessage(user, "!{#addc8d}Momentan ist kein Administrator verfügbar");
return;
}
ChatService.SendMessage(user, "!{#addc8d}Dein Ticket wurde abgeschickt");
ChatService.SendMessage(user, "!{#addc8d}Momentan sind " + UserHelper.dutyAdmins.Count + " Admins verfügbar");
ChatService.SendMessage(user, "!{#addc8d}Momentan sind " + GlobalHelper.dutyAdmins.Count + " Admins verfügbar");
ChatService.BroadcastDutyAdmin("!{#008fff}[TICKET]!{#FFFFFF} Eingehendes Ticket von~r~ " + user.Name + " (" + user.Handle.Value + ")~w~: " + text + " (Benutze /showtickets)");
ReportManage ticket = new ReportManage(user.Name, text);
listReports.Add(ticket);

View File

@@ -88,7 +88,7 @@ namespace ReallifeGamemode.Server.Services
}
public static void BroadcastDutyAdmin(string message)
{
foreach (Client admin in UserHelper.dutyAdmins)
foreach (Client admin in GlobalHelper.dutyAdmins)
{
ChatService.SendMessage(admin, message);
}

View File

@@ -6,7 +6,7 @@ using GTANetworkAPI;
namespace ReallifeGamemode.Server.Util
{
public static class UserHelper
public static class GlobalHelper
{
public static List<Client> dutyAdmins = new List<Client>();
}