more advanced features in report system
This commit is contained in:
@@ -48,7 +48,7 @@ namespace ReallifeGamemode.Server.Report
|
||||
{
|
||||
ReportManage temp = listReports[a];
|
||||
|
||||
if (!temp.getAdmin().Equals("N/A"))
|
||||
if (!temp.isAssigned())
|
||||
{
|
||||
listPlayers.Add(temp.getUser());
|
||||
listTicketnames.Add(temp.getReporttext());
|
||||
@@ -167,6 +167,17 @@ namespace ReallifeGamemode.Server.Report
|
||||
{
|
||||
if (type == "Ticket Report")
|
||||
{
|
||||
ReportManage temp = null;
|
||||
for (int a = 0; a < listReports.Count; a++)
|
||||
{
|
||||
temp = listReports[a];
|
||||
if (temp.getUser().Equals(user.Name))
|
||||
{
|
||||
ChatService.SendMessage(user, "Du hast bereits ein Ticket erstellt");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
ChatService.BroadcastDutyAdmin("Eingehendes Ticket von " + user.Name + ": " + data + " (Benutze /showtickets)");
|
||||
ReportManage ticket = new ReportManage(user.Name, data);
|
||||
listReports.Add(ticket);
|
||||
|
||||
@@ -29,6 +29,10 @@ namespace ReallifeGamemode.Server.Report
|
||||
{
|
||||
return this.admin;
|
||||
}
|
||||
public bool isAssigned()
|
||||
{
|
||||
return this.assigned;
|
||||
}
|
||||
|
||||
public String getUser()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user