Miese Corona Zeiten push für Lenhardt
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)
|
||||
@@ -232,7 +222,6 @@ namespace ReallifeGamemode.Server.Report
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Server.Report
|
||||
{
|
||||
class ReportManage
|
||||
internal class ReportManage
|
||||
{
|
||||
private String user;
|
||||
private String admin;
|
||||
@@ -29,6 +27,7 @@ namespace ReallifeGamemode.Server.Report
|
||||
{
|
||||
return this.admin;
|
||||
}
|
||||
|
||||
public bool isAssigned()
|
||||
{
|
||||
return this.assigned;
|
||||
@@ -38,6 +37,7 @@ namespace ReallifeGamemode.Server.Report
|
||||
{
|
||||
return this.user;
|
||||
}
|
||||
|
||||
public String getReporttext()
|
||||
{
|
||||
return this.reportText;
|
||||
|
||||
Reference in New Issue
Block a user