Menu principal
Version de l'image: 2.0
(Les boutons "Casier" et "Configurations Admin" ne sont pas affichés sur l'image !
Un système d'avertissement simple et épuré afin de faciliter la vie des modérateurs !
Commandes:
/warnsk <joueur> #Ouvre le menu principal
/warnadm <add/clear> <motif/joueur> (J’essaierai dans le futur de supprimer cette commande pour que cela se fasse via le menu admin)
Permissions:
warnsk.use #Donne l'accès au /warn et de mettre des avertissements
warnsk.del #Permet la suppression des avertissements
warn.adm #Permet d'avoir accès au menu administrateur
warn.addmotif #Donne l'accès à la commande /warnadm
Nouveautés
Refonte du code (Énorme optimisation) (Ancien code si dessous)
options:
logo: &7[&cWarn&8SK&7] # Permet de changer le "Préfix" du skript !
NWarn: 6 # Le Nombre maximum d'avertissements que peut atteindre un joueur ! (Par defaut 6)
BanCMD: /ban %arg 1% Avertissements : &c%{warn.%arg 1%}/{@NWarn}% ! #Commande de ban de votre choix ! Une commande de ban est crée de base ! (Pour la supprimer / Supp ligne 93 à 125)
BANCD: 5 # Quand le joueur atteint 6 avertissement attente en seconde avant le ban !
noperm: &4[&cErreur&4] &7Vous n'avez pas la permission d'exécuter cette commande ! # Message lors d'une erreur de permission !
on load:
if folder "plugins/WarnSk" doesn't exists:
create folder "plugins/WarnSk"
create file "plugins/WarnSk/bugs.txt"
command /warn [<player>]:
permission: warnsk.*
permission message: {@noperm}
trigger:
if arg 1 is not set:
send "{@logo} Tu dois indiquer un joueur !"
if arg 1 is set:
wait 2 ticks
open chest with 3 rows named "{@logo} &6%arg 1%" to player
wait 1 ticks
format slot 0 of player with Black Stained Glass pane named "" to be unstealable
format slot 1 of player with Black Stained Glass pane named "" to be unstealable
format slot 2 of player with Black Stained Glass pane named "" to be unstealable
format slot 3 of player with Black Stained Glass pane named "" to be unstealable
format slot 4 of player with Black Stained Glass pane named "" to be unstealable
format slot 5 of player with Black Stained Glass pane named "" to be unstealable
format slot 6 of player with Black Stained Glass pane named "" to be unstealable
format slot 7 of player with Black Stained Glass pane named "" to be unstealable
format slot 8 of player with Black Stained Glass pane named "" to be unstealable
format slot 9 of player with Black Stained Glass pane named "" to be unstealable
format slot 10 of player with Black Stained Glass pane named "" to be unstealable
format slot 11 of player with Red stained clay named "&cMettre un avertissement !" to close then run [make player execute command "/§json1 %arg 1%"]
format slot 12 of player with Black Stained Glass pane named "" to be unstealable
format slot 14 of player with Black Stained Glass pane named "" to be unstealable
format slot 15 of player with Green stained clay named "&aVoir les Avertissement(s) !" with lore "&cAvertissement(s): %{warn.%arg 1%}%/{@NWarn}" to be unstealable
format slot 16 of player with Black Stained Glass pane named "" to be unstealable
format slot 13 of player with Yellow stained clay named "&cSupprimer les avertissement(s) de %arg 1%" to close then run [make player execute command "/§json2 %arg 1%"]
format slot 17 of player with Black Stained Glass pane named "" to be unstealable
format slot 18 of player with Black Stained Glass pane named "" to be unstealable
format slot 19 of player with Black Stained Glass pane named "" to be unstealable
format slot 20 of player with Black Stained Glass pane named "" to be unstealable
format slot 21 of player with Black Stained Glass pane named "" to be unstealable
format slot 22 of player with Black Stained Glass pane named "" to be unstealable
format slot 23 of player with Black Stained Glass pane named "" to be unstealable
format slot 24 of player with Black Stained Glass pane named "" to be unstealable
format slot 25 of player with Black Stained Glass pane named "" to be unstealable
format slot 26 of player with Black Stained Glass pane named "" to be unstealable
command /§json1 [<player>]:
permission: op
trigger:
json("%player%", "&c&lCONFIRMER L'ENVOIE DE L'AVERTISSEMENT !||ttp:&cObligatoire !||cmd:/73876545 %arg 1% set")
command /§json2 [<player>]:
permission: op
trigger:
json("%player%", "&c&lCONFIRMER LA SUPPRESSION DE L'AVERTISSEMENT !||ttp:&cObligatoire !||cmd:/73876545 %arg 1% clear")
command /73876545 [<player>] <text>:
permission: op
trigger:
if arg 2 is "set":
if arg 1 is not set:
send "{@logo} &cTu dois indiquer un joueur !"
if arg 2 is "set":
if arg 1 is set:
add 1 to {warn.%arg 1%}
send "{@logo} &cTu as reçu un avertissement de %player% ! %{warn.%arg 1%}%/{@NWarn}" to arg 1
send "{@logo} Tu as envoyé un avertissement au Joueur &6%arg 1%&7." to player
if {warn.%arg 1%} = {@NWarn}:
send "{@logo} &c&lTu vas être BAN dans {@BANCD}s pour avertissement %{warn.%arg 1%}%/{@NWarn}" to arg 1
wait {@BANCD} seconds
execute console command "{@BanCMD}" # < ======= ICI VOUS POUVEZ METTRE VOTRE COMMANDE DE BAN !
send "{@logo} Tu as &cBAN &7le joueur %arg 1% ! Avertissement(s): %{warn.%arg 1%}%/{@NWarn}" to player
if arg 2 is "clear":
if arg 1 is not set:
send "{@logo} &cTu dois indiquer un joueur !" to player
if arg 2 is "clear":
if arg 1 is set:
if {warn.%arg 1%} = 0:
send "{@logo} Le joueur n'a aucun avertissement !" to player
if arg 2 is "clear":
if arg 1 is set:
if {warn.%arg 1%} > 0:
set {warn.%arg 1%} to 0
send "{@logo} &cTes avertissement on était supprimé !" to arg 1
send "{@logo} Tu as supprimé tous les avertissement de %arg 1%" to player
#=======================================================================================================================================#
#Système crée par Asterix06 / Youtube : https://www.youtube.com/channel/UCPsnmfVYO0LVBFFJFKKrAvA
#Système de BAN !
command /ban [<offlineplayer>] [<text>]:
description: Définitivement bannir un joueur.
usage: /ban <joueur> <motif>
permission: warn.ban
permission message: {@noperm}
aliases: eban
trigger:
if arg 1 is not set:
json("%player%", "&4[&cBan&4] &7Commande demandée : &o/ban <joueur> <motif>||ttp:&7&oCliquez ici !||sgt:/ban")
stop
if arg 2 is not set:
ban arg 1 due to "&4[&cBan&4] &7Vous avez été banni pour une raison inconnue !"
wait 1 tick
kick arg 1 due to "&4[&cBan&4] &7Vous avez été banni pour une raison inconnue !"
broadcast "&4[&cBan&4] &7%arg 1% a été banni pour une raison inconnue !"
set {time.ban.%arg 1%} to now
if arg 2 is set:
ban arg 1 due to "&4[&cBan&4] &7Vous avez été banni pour %arg 2% !"
wait 1 tick
kick arg 1 due to "&4[&cBan&4] &7Vous avez été banni pour %arg 2% !"
broadcast "&4[&cBan&4] &7%arg 1% a été banni pour %arg 2% !"
set {motif.ban.%arg 1%} to arg 2
set {time.ban.%arg 1%} to now
on connect:
if player is banned:
if {motif.ban.%player%} is set:
kick player due to "&4[&cBan&4] &7Vous êtes définitivement banni !%nl%%nl%&7Motif : %{motif.ban.%player%}%"
stop
if {motif.ban.%player%} is not set:
kick player due to "&4[&cBan&4] &7Vous êtes définitivement banni !%nl%%nl%&7Motif : inconnu"
stop
command /unban [<offlineplayer>]:
description: Débannir un joueur.
usage: /unban <joueur>
executable by: console and player
permission: warnsk.*
permission message: {@noperm}
aliases: pardon, eunban, epardon, deban
trigger:
if arg 1 is not set:
json("%player%", "&4[&cUnBan&4] &7Commande demandée : &o/unban <joueur>||ttp:&7&oCliquez ici !||sgt:/unban")
stop
if arg 1 is set:
IP-unban argument 1
clear {banip.%arg 1%}
set {time.%arg 1%} to now
clear {ban.%arg 1%}
clear {motif.ban.%arg 1%}
clear {motif.tempban.%arg 1%}
clear {time.ban.%arg 1%}
unban argument 1
execute console command "/pardonip %arg 1%"
send "&4[&cUnBan&4] &7%arg 1%&7 est désormais débanni !"
#===================================================================================================================================================#
command /wbugs [<text>]:
trigger:
if arg 1 is not set:
send "{@logo} Merci d'inscrire votre pleinte !"
if arg 1 is set:
send "{@logo} &cAttention ! Toutes fausse plainte et sanctionner !"
wait 2 seconds
send "{@logo} Enregistrement en cours..."
wait 2 seconds
send "{@logo} Votre plaintes a été enregister avec succès !"
set {_now} to now
wf "Joueur: %player%| Date:%{_now}%|Plainte:%arg 1%" to "plugins/WarnSk/bugs.txt"
loop all players:
if loop-player has permission "warnsk.*":
send "%player% a envoyé une plainte ! Motif: %arg 1%" to loop-player
Système de check update (Vous êtes informé des mises à jour)
Système de bannissement recrée (plus aucune commande à faire)
Système yml pour configurer les messages
Langage anglais
Possibilité de mettre / supprimer des motifs
Casier du joueur disponible
Menu configuration ingame (Pas terminé à 100%)
Ce qui arrive bientôt !
Configuration en jeu
Plus d'options en jeu (Choisir le nombre de warn à supprimer etc)
Informations complémentaires:
Addons: Tuske, skript-yaml
Versions testées: 1.13, 1.14.4, 1.15.2
Discord: Dofy | 忍#9113 ou discord skript-mc
N'hésitez pas à mettre une review ou à me donner des idées d'update pour ce skript ! Toute critique est bonne à prendre !
Ce skript est une re-publication de WarnSK 1.0 qui était disponible sur l'ancienne version du Forum, j'ai juste amélioré le code grâce aux compétences acquises entre-temps.