I need help i have a report command and then come this error

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

asassa

Member
Apr 20, 2023
1
0
1
command /report [<player>] [<text>]:
trigger:
if arg 1 is not set:
if arg 2 is not set:
send "{@P} &8Nutze: &c/report [Spieler] [Grund]"
if arg 1 is set:
if arg 2 is set:
send "{@P} &aDanke für deinen Report <3"
add "%arg-1%" to {reportliste::*}
set {reportgrund.%arg-1%} to arg-2
set {reportuse.%arg-1%} to player
set {report.%arg-1%} to true
loop all players:
if loop-player has permission "report.use":
send "&8[&8&m----------&r&8] {@P} &8[&8&m----------&r&8]" to loop-player
send "{@P} &cGereportet wurde: &c%arg-1%" to loop-player
send "{@P} &7Gereportet von: &c%player%" to loop-player
send "{@P} &cGrund des Reports: &c%arg-2%"
send "&8[&8&m----------&r&8] {@P} &8[&8&m----------&r&8]" to loop-player
 

Attachments

  • 2023-05-01_10.35.49.png
    2023-05-01_10.35.49.png
    246.6 KB · Views: 175