renamed important file
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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>();
|
||||
}
|
||||
Reference in New Issue
Block a user