Report command fix. AntiHaxerman support, new API Event
Fixed the report command not sending a webhook or creating a replay.
Added support for
AntiHaxerman
Added a new configuration option:
Code (YAML):
General:
Notify-Staff
: true
Anyone with the
AntiCheatReplay.recording-notify
permission will get a notification whenever a recording is saved.
Added a new API event:
PlayerReportEvent:
Code (Java):
/**
* Player that submitted a report
*
* @return reporter
*/
public Player getReporter
(
)
{
return
this.
reporter
;
}
/**
* Player that was reported
*
* @return target
*/
public Player getTarget
(
)
{
return
this.
target
;
}
/**
* Reason for the report.
* Returns "No Reason Supplied" if no reason was given in the report.
*
* @return reason
*/
public
String getReason
(
)
{
return
this.
reason
;
}
Added 2 new messages in Messages.yml
"Report Successfully submitted" Appears to a player that has submitted a report.
and
"A recording has been saved: %r"
This shows up to staff when the config option is set to true. %r is replaced with the replay name.