Advertisement
Guest User

Untitled

a guest
Jan 1st, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on load:
  2.     if {load.modération} isn't set:
  3.         log "&6[%now% WARN] &7Création du fichier de configuration"
  4.         load yaml "plugins/Skript/scripts/modération/report-Config.yml"
  5.         delete file "plugins/Skript/scripts/modération/report-Config.yml"
  6.         load yaml "plugins/Skript/scripts/modération/report-Config.yml"
  7.         set {load.modération} to "fichier crée"
  8.        
  9. options:
  10.     report: &f[&6&lReport&f]&r
  11.     reason: "AntiKb" or "Fly" or "Reach" or "Aimbot" or "AutoClick" or "NoDamage" or "SpeedHack" or "other"
  12.  
  13. # permission:
  14. #   report.send > Pour que les modos ou autre puissent voir les msg des reports
  15. #   report.see  > Pour que les modos ou autre puissent voir le gui des reports
  16. #   saypa je sais pas si on fait les perm en skript alors voila perm
  17.  
  18. function retirer(p: player, t: text):
  19.     set {_uuid} to uuid of {report.author::%{_t}%}
  20.     remove {report.player::%{_t}%} from {report.%{_uuid}%::*}
  21.     message "{@report} vous avez &csupprimer &rle report de &e%{report.author::%{_t}%}%" to {_p}
  22.     if {report.author::%{_t}%} is online:
  23.         message "{@report} votre plainte contre &e%{report.player::%{_t}%}% &ra été &csupprimer" to {report.author::%{_t}%}
  24.     delete {report.reason::%{_t}%}
  25.     delete {report.player::%{_t}%}
  26.     delete {report.author::%{_t}%}
  27.     make {_p} execute command "/admreport"
  28.    
  29. on chat:
  30.     if {report.%player's uuid%} is true:
  31.         cancel event
  32.         set {_report} to the message
  33.         set message to ""
  34.         add {_report} to {report.reason::*}
  35.         add {report.arg2.%player's uuid%} to {report.player::*}
  36.         add player to {report.author::*}
  37.         message "{@report} vous avez report &e%{report.arg2.%player's uuid%}% &rpour &e%{_report}%"
  38.         delete {report.%player's uuid%}
  39.         delete {report.arg2.%player's uuid%}
  40.     else:
  41.         stop
  42.        
  43. command /report [<offline player>]:
  44.     trigger:
  45.         if arg 1 is set:
  46.             if arg 1 is online:
  47.                 if arg 1 is not player:
  48.                     open virtual chest inventory with size 4 named "&7» &6&lReport&7" to player
  49.                     wait 1 ticks
  50.                     set {_slot} to 0
  51.                     loop 9 times:
  52.                         make a gui slot {_slot} of player with stained glass pane named " " to do nothing
  53.                         add 1 to {_slot}
  54.                     set {_slot} to 27
  55.                     loop 9 times:
  56.                         make a gui slot {_slot} of player with stained glass pane named " " to do nothing
  57.                         add 1 to {_slot}
  58.                     make a gui slot 11 of player with stick named "&eAnti&7Kb" with lore "&aClick pour report &e%arg 1%||&7De: &eAnti&7Kb" to close then run player command "/§reportsk antikb %arg 1%"
  59.                     make a gui slot 12 of player with feather named "&eFly" with lore "&aClick pour report &e%arg 1%||&7De: &eFly" to close then run player command "/§reportsk fly %arg 1%"
  60.                     make a gui slot 13 of player with iron sword named "&eReach" with lore "&aClick pour report &e%arg 1%||&7De: &eReach" to close then run player command "/§reportsk reach %arg 1%"
  61.                     make a gui slot 14 of player with bow named "&eAimbot" with lore "&aClick pour report &e%arg 1%||&7De: &eAimbot" to close then run player command "/§reportsk aimbot %arg 1%"
  62.                     make a gui slot 15 of player with stick named "&eAuto&7Click" with lore "&aClick pour report &e%arg 1%||&7De: &eAuto&7Click" to close then run player command "/§reportsk autoclick %arg 1%"
  63.                     make a gui slot 21 of player with chainmail boots named "&eNo&7Damage" with lore "&aClick pour report &e%arg 1%||&7De: &eNo&7Damage" to close then run player command "/§reportsk nodamage %arg 1%"
  64.                     make a gui slot 22 of player with diamond boots named "&eSpeed&7Hack" with lore "&aClick pour report &e%arg 1%||&7De: &eSpeed&7Hack" to close then run player command "/§reportsk speedhack %arg 1%"
  65.                     make a gui slot 23 of player with paper named "&eAutre" with lore "&aClick pour report &e%arg 1%||&7De: &eAutre" to close then run player command "/§reportsk other %arg 1%"
  66.                     make a gui slot 27 of player with barrier named "&cAnnuler" to close
  67.                     make a gui slot 31 of player with skull of arg 1 named "&7report: &e&n%arg 1%" to do nothing
  68.                 else:
  69.                     message "{@report} &cvous ne pouvez pas vous report vous même"
  70.             else:
  71.                 message "{@report} &e%arg 1% &cn'est pas &aConnecté"
  72.         else:
  73.             message "{@report} &7/report <&aspeudo&7>"
  74.            
  75. command /admreport:
  76.     trigger:
  77.         if player has permission "report.see":
  78.             open virtual chest inventory with size 6 named "&7» &6&lLes&7&lReports" to player
  79.             wait 1 ticks
  80.             set {_slot} to 0
  81.             loop 9 times:
  82.                 make a gui slot {_slot} of player with stained glass pane named " " to do nothing
  83.                 add 1 to {_slot}
  84.             set {_slot} to 45
  85.             loop 9 times:
  86.                 make a gui slot {_slot} of player with stained glass pane named " " to do nothing
  87.                 add 1 to {_slot}
  88.             make a gui slot 49 of player with sunflower named "&e&lRefresh" to run player command "/admreport"
  89.             set {_slot} to 9
  90.             set {_author} to 1
  91.             loop {report.player::*}:
  92.                 make a gui slot {_slot} of player with skull of "%loop-value%" parsed as a offline player named "&e&n%loop-value%" with lore "&7Auteur: &6%{report.author::%{_author}%}%||&7Accuser: &6%loop-value%||&7Raison: &6%{report.reason::%{_author}%}%" to run function retirer(player, "%{_author}%")
  93.                 add 1 to {_slot}
  94.                 add 1 to {_author}
  95.                 if {_slot} = 44:
  96.                     stop
  97.         else:
  98.             message "&f[&c&lERREUR&f] &cvous n'avez pas la permission a cette commande"
  99.            
  100. command /§reportsk [<text>] [<offline player>]:
  101.     trigger:
  102.         if arg 1 is set:
  103.             if arg 1 is {@reason}:
  104.                 if arg 1 is not "other":
  105.                     if {report.%player's uuid%::*} contain arg 2:
  106.                         message "{@report} &cvous avez déjà report &e%arg 2%"
  107.                     else:
  108.                         add arg 1 to {report.reason::*}
  109.                         add arg 2 to {report.player::*}
  110.                         add player to {report.author::*}
  111.                         add arg 2 to {report.%player's uuid%::*}
  112.                         message "{@report} vous avez report &e%arg 2% &rpour &e%arg 1%"
  113.                         loop all players:
  114.                             if loop-player has permission "report.send.sk":
  115.                                 message "{@report} &e%arg 2% &rà été report pour &e%arg 1% &rpar &e%executor%" to loop-player
  116.                         stop
  117.                 else:
  118.                     set {report.%player's uuid%} to true
  119.                     set {report.arg2.%player's uuid%} to arg 2
  120.                     message "{@report} ecrivez un mot dans le chat pour confirmer sont ""cheat"""
  121.                     set {_wait} to 5
  122.                     loop 5 times:
  123.                         if {report.%player's uuid%} is true:
  124.                             message "{@report} Il vous reste &e%{_wait}% &rSeconde(s) avant que sa soit cancel"
  125.                             remove 1 from {_wait}
  126.                             wait 1 seconds
  127.                         else:
  128.                             stop
  129.                     stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement