Hello SkUnity!
I'm having some trouble, I'm currently creating a report system, but I want it so when I click one of the reports in the GUI the report will be deleted.
I can't seem to figure out how to do so, anyone that can help?
I'm having some trouble, I'm currently creating a report system, but I want it so when I click one of the reports in the GUI the report will be deleted.
I can't seem to figure out how to do so, anyone that can help?
code_language.skript:
command /report [<text>] <player> [<text>]:
permission: {@permission}.report
usage: &c/report <player> <reason>
trigger:
if arg 1 is "check":
if arg 2 is set:
loop all players:
if loop-player has permission "{@permission}.report.check":
open chest with 6 rows named "&cReport" to player
wait 1 tick
loop integers between 0 to 53:
{_reports::%arg 2%::%loop-number +1%} is set
set slot loop-number of player's current inventory to paper named "&f%arg 2% &cReport %loop-number +1%" with lore "&eReason: &c%{_reports::%arg 2%::%loop-number +1%}% ||&eReported by: &c%{_reports::%arg 2%::by::%loop-number +1%}%"