Can someone check this for me?

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

  • LOOKING FOR A VERSION OF SKRIPT?

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

Status
Not open for further replies.

TehCheetah

Member
Feb 7, 2021
49
1
8
24
Hey! I have been trying to make a report command. There has been no errors, but I was wondering your guy's inputs!

Please keep in mind that I am not the best Skripter, and I may add unnecessary parts, if you could mention them out to me, that would help a lot! I used skUnity Parser with this code, but I was wondering your guys opinions! The Parser is the thing that added the

The code:
Code:
# Cheetah Report System


# Reports:

# Blacklisted Modifications

# Harassment

# Spam

# Other


command /creport [<player>] [<text>]:

    trigger:

        if arg-1 isn't set:

            send "&6CHEETAH REPORT | &7Please specify a player to report!" to player

            send "&cReport options: Blacklisted Modifications, Harassment, Spam, Other" to player

        if arg-2 is "Blacklisted Modifications":

            send "&6CHEETAH REPORT | You have just reported %arg-1% for &7Blacklisted Modifications" to player

            loop all players:

                if loop-player has permission "creports.see":

                    # [SmartFix] TODO

                   

                    send "&6CHEETAH REPORT | %player% has reported %arg-1% for &7Blacklisted Modifications" to loop-player

                    stop

        if arg-2 is "Harassment":

            send "&6CHEETAH REPORT | You have just reported %arg-1% for &7Harassment" to player

            loop all players:

                if loop-player has permission "creports":

                    # [SmartFix] TODO

                   

                    send "&6CHEETAH REPORT | %player% has reported %arg-1% for &7Harassment" to loop-player

                    stop

        if arg-2 is "Spam":

            send "&6CHEETAH REPORT | You have just reported %arg-1% for &7Spam" to player

            loop all players:

                if loop-player has permission "creports.see":

                    # [SmartFix] TODO

                   

                    send "&6CHEETAH REPORT | %player% has reported %arg-1% for &7Spam" to loop-player

                    stop

        if arg-2 is "Other":

            send "&6CHEETAH REPORT | You have just reported %arg-1% for &7Other" to player

            loop all players:

                if loop-player has permission "creports.see":

                    # [SmartFix] TODO

                   

                    send "&6CHEETAH REPORT | %player% has reported %arg-1% for &7Other" to loop-player

                    stop

                   

        if arg-2 is not set:

            send "&cReport options: Blacklisted Modifications, Harassment, Spam, Other" to player

            stop
 
Status
Not open for further replies.