Skip to content
Permalink
Browse files

Fix all reports having ID 0 making /reports delete not work. (Thanks …

…123DMWM)
  • Loading branch information...
UnknownShadow200 committed Jan 23, 2018
1 parent b5d53c7 commit 8526a5340e0d3f4ae626e7e70062b591790384e0
Showing with 1 addition and 1 deletion.
  1. +0 −1 fCraft/Commands/ChatCommands.cs
  2. +1 −0 fCraft/Player/Report.cs
@@ -611,7 +611,6 @@ static void ClearHandler(Player player, CommandReader cmd)
Category = CommandCategory.New | CommandCategory.Chat,
Usage = "/Reports [option] {args}",
Help = "Use this command to list/remove reports from players",

Handler = ReportsHandler
};

@@ -69,6 +69,7 @@ public class Report {

string[] data = File.ReadAllLines(filename);
Report report = new Report();
report.Id = id;
report.Sender = data[0];
report.Message = data[2];

0 comments on commit 8526a53

Please sign in to comment.
You can’t perform that action at this time.