inshallah kein fehler
This commit is contained in:
@@ -1,22 +1,17 @@
|
||||
using GTANetworkAPI;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using GTANetworkAPI;
|
||||
using Newtonsoft.Json;
|
||||
using ReallifeGamemode.Database.Entities;
|
||||
using ReallifeGamemode.Server.Extensions;
|
||||
using ReallifeGamemode.Server.Finance;
|
||||
using ReallifeGamemode.Database.Models;
|
||||
using ReallifeGamemode.Server.Services;
|
||||
using ReallifeGamemode.Server.Util;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using Newtonsoft.Json;
|
||||
using ReallifeGamemode.Database;
|
||||
using ReallifeGamemode.Services;
|
||||
using ReallifeGamemode.Server.Types;
|
||||
using ReallifeGamemode.Server.Util;
|
||||
using ReallifeGamemode.Services;
|
||||
|
||||
namespace ReallifeGamemode.Server.Report
|
||||
{
|
||||
class Report : Script
|
||||
internal class Report : Script
|
||||
{
|
||||
public static List<ReportManage> listReports = new List<ReportManage>();
|
||||
|
||||
@@ -27,7 +22,6 @@ namespace ReallifeGamemode.Server.Report
|
||||
|
||||
client.TriggerEvent("showReportType");
|
||||
//ChatService.BroadcastAdmin("Eingehendes Ticket von " + client.Name + ": " + message + " (Benutze /showtickets)", AdminLevel.ADMIN);
|
||||
|
||||
}
|
||||
|
||||
[Command("showtickets", "~m~Benutzung: ~s~/showtickets")]
|
||||
@@ -64,10 +58,8 @@ namespace ReallifeGamemode.Server.Report
|
||||
return;
|
||||
}
|
||||
client.TriggerEvent("showReportMenu", JsonConvert.SerializeObject(listPlayers), JsonConvert.SerializeObject(listTicketnames));
|
||||
|
||||
}
|
||||
|
||||
|
||||
[RemoteEvent("acceptReport")]
|
||||
public void AcceptReport(Player admin, string playerName)
|
||||
{
|
||||
@@ -75,7 +67,6 @@ namespace ReallifeGamemode.Server.Report
|
||||
if (player == null)
|
||||
return;
|
||||
|
||||
|
||||
for (int a = 0; a < listReports.Count; a++)
|
||||
{
|
||||
ReportManage temp = listReports[a];
|
||||
@@ -155,7 +146,6 @@ namespace ReallifeGamemode.Server.Report
|
||||
{
|
||||
userIsAdmin = true;
|
||||
}
|
||||
|
||||
}
|
||||
//Für User
|
||||
if ((!client.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true) || userIsAdmin)
|
||||
@@ -241,7 +231,6 @@ namespace ReallifeGamemode.Server.Report
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user