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:
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