Trying to make this work, currently it adds 4 reports when reporting a player, if i report multiple players with multiple reasons they will all have the same reason, reported by etc.
No reload errors
Skript Version (do not put latest): 2.4-beta7
Skript Author: Hartvig
Minecraft Version: 1.12
Full Code:
No reload errors
Skript Version (do not put latest): 2.4-beta7
Skript Author: Hartvig
Minecraft Version: 1.12
Full Code:
Code:
options:
mr: &cMissing reason, reasons: &7flyhack, nuker, reach
command /report [<offline player>] [<text>]:
trigger:
if arg 1 is not set:
send "&cPlease do /report &7[&cplayer&7] &7[&creason&7]"
if arg 1 is set:
if arg 1 is a offline player:
if arg 2 is set:
if arg 2 is "flyhack", "nuker" or "reach":
add skull of arg 1 to {reports::*}
add arg 1 to {reports::*}
add player to {reports::*}
add arg 2 to {reports::*}
send "&cReported &e&n%arg 1% &cfor &e&n%arg 2%"
else:
send "{@mr}"
else:
send "{@mr}"
command /reports:
permission: "report.sk"
trigger:
set {_i} to chest inventory with 6 rows named "&c&lReports"
wait 1 tick
open {_i} to player
set {_slot} to -1
loop {reports::*}:
add 1 to {_slot}
set slot {_slot} of {_i} to 1st element of {reports::*} named "&e&l%2nd element of {reports::*}%" with lore "&7Reported by &b%3rd element of {reports::*}%" and "&7Reason &c%4th element of {reports::*}%"