Guest User

Report.sk

a guest
Oct 27th, 2015
1,577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. options:
  2. createur: Asterix06
  3.  
  4. command /report [<text>] [<text>]:
  5. trigger:
  6. if arg 1 is not set:
  7. send json of "&6&lReport &7> &f/report <joueur> <raison>" suggest "/report" to player
  8. send "&6&oBy {@createur}"
  9. stop
  10. if arg 1 is set:
  11. if arg 2 is not set:
  12. send "&6&lReport &7> &fTu dois préciser le motif !"
  13. stop
  14. if arg 2 is set:
  15. if {spamreport.%player%} is true:
  16. send "&6&lReport &7> &fImpossible de spam/flood !"
  17. stop
  18. else:
  19. make console execute command "reportfinal %world% %player% %arg 1% %arg 2%"
  20. send "&6&lReport &7> &fReport envoyé !"
  21. set {spamreport.%player%} to true
  22. wait 2 seconds
  23. clear {spamreport.%player%}
  24. stop
  25.  
  26. command /reportfinal [<text>] [<text>] [<text>] [<text>]:
  27. executable by: console
  28. trigger:
  29. loop all players:
  30. if loop-player has the permission "voir.report":
  31. if arg 2 is set:
  32. send "&6&l-=-=-=-=-=-=-=-&f&l[&7REPORT&f&l]&6&l-=-=-=-=-=-=-=-" to loop-player
  33. send "" to loop-player
  34. send "&6Localisation : &f%arg 1%" to loop-player
  35. send "&6Plainte par : &f%arg 2%" to loop-player
  36. send "&6Contre : &f%arg 3%" to loop-player
  37. send "&6Motif : &f%arg 4%" to loop-player
  38.  
  39. on join:
  40. clear {spamreport.%player%}
  41. on quit:
  42. clear {spamreport.%player%}
Advertisement
Add Comment
Please, Sign In to add comment