command /report [<player>] [<text>]:
description: Main Report Command
permission: command.report
permission message: You don't have permission to do this
trigger:
if arg-1 isn't set:
send "Error, you must specify a player"
else if arg-2 isn't set:
send "You must specify a reason"
else if arg-2 isn't "Fly" or "Speed" or "Aura" or "KillAura":
send "Error, that is not a valid Reason"
send "Reasons: Fly, Speed, KillAura"
else:
add arg-2 to {Reports::%arg-1's uuid%::*}
send "Successfully reported %arg-1%, Thanks for the report"
send "Note: False reports will be punished"
loop all players:
if loop-player has permission "report.staff":
send "ALERT! %player% has reported %arg-1% for %arg-2%" to loop-player
send "To check the logs, type /checkreport [Player]" to loop-player
command /checkreport [<offline player>]:
description: Main Report Checking Command
permission: report.staff
permission message: You don't have permission to do this
trigger:
if arg-1 isn't set:
send "You must specify a user"
else:
send "Viewing Report Status of: %arg-1%"
send ""
loop {Reports::%arg-1's uuid%::*}:
send "##%loop-index% - %loop-value%"
send ""
send "Total Reports Made: %size of {Reports::%arg-1's uuid%::*}%"