mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 12:05:51 -04:00
Allow @ [rule] shortcuts in /report (Thanks VenkSociety)
This commit is contained in:
parent
19e07406eb
commit
33c20d26fc
@ -151,7 +151,11 @@ namespace MCGalaxy.Commands.Moderation {
|
||||
return;
|
||||
}
|
||||
|
||||
reports.Add(args[1] + " - Reported by " + p.name + " at " + DateTime.Now);
|
||||
string reason = args[1];
|
||||
reason = ModActionCmd.ExpandReason(p, reason);
|
||||
if (reason == null) return;
|
||||
|
||||
reports.Add(reason + " - Reported by " + p.name + " at " + DateTime.Now);
|
||||
File.WriteAllLines("extra/reported/" + target + ".txt", reports.ToArray());
|
||||
Player.Message(p, "%aYour report has been sent, it should be viewed when an operator is online!");
|
||||
Chat.MessageOps(p.ColoredName + " %Shas made a report, view it with %T/Report check " + target);
|
||||
|
Loading…
x
Reference in New Issue
Block a user