Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- createur: Asterix06
- command /report [<text>] [<text>]:
- trigger:
- if arg 1 is not set:
- send json of "&6&lReport &7> &f/report <joueur> <raison>" suggest "/report" to player
- send "&6&oBy {@createur}"
- stop
- if arg 1 is set:
- if arg 2 is not set:
- send "&6&lReport &7> &fTu dois préciser le motif !"
- stop
- if arg 2 is set:
- if {spamreport.%player%} is true:
- send "&6&lReport &7> &fImpossible de spam/flood !"
- stop
- else:
- make console execute command "reportfinal %world% %player% %arg 1% %arg 2%"
- send "&6&lReport &7> &fReport envoyé !"
- set {spamreport.%player%} to true
- wait 2 seconds
- clear {spamreport.%player%}
- stop
- command /reportfinal [<text>] [<text>] [<text>] [<text>]:
- executable by: console
- trigger:
- loop all players:
- if loop-player has the permission "voir.report":
- if arg 2 is set:
- send "&6&l-=-=-=-=-=-=-=-&f&l[&7REPORT&f&l]&6&l-=-=-=-=-=-=-=-" to loop-player
- send "" to loop-player
- send "&6Localisation : &f%arg 1%" to loop-player
- send "&6Plainte par : &f%arg 2%" to loop-player
- send "&6Contre : &f%arg 3%" to loop-player
- send "&6Motif : &f%arg 4%" to loop-player
- on join:
- clear {spamreport.%player%}
- on quit:
- clear {spamreport.%player%}
Advertisement
Add Comment
Please, Sign In to add comment