Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on load:
- if {load.modération} isn't set:
- log "&6[%now% WARN] &7Création du fichier de configuration"
- load yaml "plugins/Skript/scripts/modération/report-Config.yml"
- delete file "plugins/Skript/scripts/modération/report-Config.yml"
- load yaml "plugins/Skript/scripts/modération/report-Config.yml"
- set {load.modération} to "fichier crée"
- options:
- report: &f[&6&lReport&f]&r
- reason: "AntiKb" or "Fly" or "Reach" or "Aimbot" or "AutoClick" or "NoDamage" or "SpeedHack" or "other"
- # permission:
- # report.send > Pour que les modos ou autre puissent voir les msg des reports
- # report.see > Pour que les modos ou autre puissent voir le gui des reports
- # saypa je sais pas si on fait les perm en skript alors voila perm
- function retirer(p: player, t: text):
- set {_uuid} to uuid of {report.author::%{_t}%}
- remove {report.player::%{_t}%} from {report.%{_uuid}%::*}
- message "{@report} vous avez &csupprimer &rle report de &e%{report.author::%{_t}%}%" to {_p}
- if {report.author::%{_t}%} is online:
- message "{@report} votre plainte contre &e%{report.player::%{_t}%}% &ra été &csupprimer" to {report.author::%{_t}%}
- delete {report.reason::%{_t}%}
- delete {report.player::%{_t}%}
- delete {report.author::%{_t}%}
- make {_p} execute command "/admreport"
- on chat:
- if {report.%player's uuid%} is true:
- cancel event
- set {_report} to the message
- set message to ""
- add {_report} to {report.reason::*}
- add {report.arg2.%player's uuid%} to {report.player::*}
- add player to {report.author::*}
- message "{@report} vous avez report &e%{report.arg2.%player's uuid%}% &rpour &e%{_report}%"
- delete {report.%player's uuid%}
- delete {report.arg2.%player's uuid%}
- else:
- stop
- command /report [<offline player>]:
- trigger:
- if arg 1 is set:
- if arg 1 is online:
- if arg 1 is not player:
- open virtual chest inventory with size 4 named "&7» &6&lReport&7" to player
- wait 1 ticks
- set {_slot} to 0
- loop 9 times:
- make a gui slot {_slot} of player with stained glass pane named " " to do nothing
- add 1 to {_slot}
- set {_slot} to 27
- loop 9 times:
- make a gui slot {_slot} of player with stained glass pane named " " to do nothing
- add 1 to {_slot}
- 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%"
- 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%"
- 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%"
- 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%"
- 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%"
- 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%"
- 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%"
- 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%"
- make a gui slot 27 of player with barrier named "&cAnnuler" to close
- make a gui slot 31 of player with skull of arg 1 named "&7report: &e&n%arg 1%" to do nothing
- else:
- message "{@report} &cvous ne pouvez pas vous report vous même"
- else:
- message "{@report} &e%arg 1% &cn'est pas &aConnecté"
- else:
- message "{@report} &7/report <&aspeudo&7>"
- command /admreport:
- trigger:
- if player has permission "report.see":
- open virtual chest inventory with size 6 named "&7» &6&lLes&7&lReports" to player
- wait 1 ticks
- set {_slot} to 0
- loop 9 times:
- make a gui slot {_slot} of player with stained glass pane named " " to do nothing
- add 1 to {_slot}
- set {_slot} to 45
- loop 9 times:
- make a gui slot {_slot} of player with stained glass pane named " " to do nothing
- add 1 to {_slot}
- make a gui slot 49 of player with sunflower named "&e&lRefresh" to run player command "/admreport"
- set {_slot} to 9
- set {_author} to 1
- loop {report.player::*}:
- 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}%")
- add 1 to {_slot}
- add 1 to {_author}
- if {_slot} = 44:
- stop
- else:
- message "&f[&c&lERREUR&f] &cvous n'avez pas la permission a cette commande"
- command /§reportsk [<text>] [<offline player>]:
- trigger:
- if arg 1 is set:
- if arg 1 is {@reason}:
- if arg 1 is not "other":
- if {report.%player's uuid%::*} contain arg 2:
- message "{@report} &cvous avez déjà report &e%arg 2%"
- else:
- add arg 1 to {report.reason::*}
- add arg 2 to {report.player::*}
- add player to {report.author::*}
- add arg 2 to {report.%player's uuid%::*}
- message "{@report} vous avez report &e%arg 2% &rpour &e%arg 1%"
- loop all players:
- if loop-player has permission "report.send.sk":
- message "{@report} &e%arg 2% &rà été report pour &e%arg 1% &rpar &e%executor%" to loop-player
- stop
- else:
- set {report.%player's uuid%} to true
- set {report.arg2.%player's uuid%} to arg 2
- message "{@report} ecrivez un mot dans le chat pour confirmer sont ""cheat"""
- set {_wait} to 5
- loop 5 times:
- if {report.%player's uuid%} is true:
- message "{@report} Il vous reste &e%{_wait}% &rSeconde(s) avant que sa soit cancel"
- remove 1 from {_wait}
- wait 1 seconds
- else:
- stop
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement