Simple Report Skript

  • 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 comminuty!

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

Francesco

New Member
Dec 6, 2022
5
0
1
Tested Minecraft Version: 1.19.x

Credits: itzParasite

Version: 1.0

Code:
# COMMAND

command /report [<offlineplayer>] [<text>]:
    cooldown: 1 minute
    cooldown storage: {report-cooldown::%uuid of player%::srsk}
    cooldown message: {@sp_prefix_formatted} &7Wait %remaining time% to use the command again
    trigger:
        reportPlayer(player, arg-1, arg-2)

command /guireport [<offlineplayer>]:
    permission: "reportgui.open.permission"
    permission message: "{@sp_prefix_formatted} &7Unknown command"
    trigger:
        set {reportedName::%player%} to arg-1 # temporary variable
        reportGuiOpen(player, arg-1)

command /simplereport:
    permission: "simplereport.admin.permission"
    permission message: "{@sp_prefix_formatted} &7Unknown command"
    trigger:
        simpleReportHelp(player)