fix support?

This commit is contained in:
Luke
2021-05-02 22:46:03 +00:00
parent 115eb9ce3d
commit a3d7082451
2 changed files with 3 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ export default function reportList(globalData: IGlobalData) {
var types = ["Ticket", "Quick-Report"];
reportMenu = new Menu("Ticket/Quick-Report", "", new Point(0, screenRes.y / 3), null, null);
reportMenu = new Menu("Support", "", new Point(0, screenRes.y / 3), null, null);
var typesItem = new UIMenuListItem("Typ", "", new ItemsCollection(types));
reportMenu.AddItem(typesItem);

View File

@@ -180,7 +180,7 @@ namespace ReallifeGamemode.Server.Report
public void RequestReport(Player user, string type, string data)
{
string text = JsonConvert.DeserializeObject<string>(data);
if (type == "Ticket Report")
if (type == "Ticket")
{
ReportManage temp = null;
for (int a = 0; a < listReports.Count; a++)
@@ -213,7 +213,7 @@ namespace ReallifeGamemode.Server.Report
listReports.Add(ticket);
//ChatService.SendMessage(user, "!{#addc8d}In Bearbeitung");
}
if (type == "Quick Report")
if (type == "Quick-Report")
{
ChatService.BroadcastAdmin("!{#008fff}[QR]~w~ " + user.Name + " (" + user.Handle.Value + ")~w~: " + text, AdminLevel.SUPPORTER);
user.SendChatMessage("~w~Dein Quick Report wurde an das Adminteam weitergeleitet");