File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ regex_rules:
3232# Example rule to replace [bold] with the format code %l to make bold text
3333- look_for : ' \[bold\]'
3434 replace_with : " &l"
35+ permission : " multichat.regexrules.bold" # You can choose to specify permissions in order for the regex rules to apply
3536# Example rule to replace [italic] with the format code %o to make italic text
3637- look_for : ' \[italic\]'
3738 replace_with : " &o"
@@ -64,6 +65,11 @@ regex_actions:
6465 command : " kick %PLAYER% You asked for it!"
6566 cancel : false
6667 spigot : true
68+ - look_for : ' thisisabadword'
69+ command : " kick %PLAYER% You are now allowed to say that here!"
70+ permission : " !multichat.chat.badwords" # If the permission starts with !, then the action will only apply to players WITHOUT that permission.
71+ cancel : true
72+ spigot : true
6773
6874apply_actions_to :
6975 global_chat : true
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ regex_rules:
3535# Exemple de règle pour remplacer [bold] par le code de format %l pour faire du texte en gras
3636- look_for : ' \[bold\]'
3737 replace_with : " &l"
38+ permission : " multichat.regexrules.bold" # Permission (est facultatif)
3839# Exemple de règle pour remplacer [italic] par le code de format %o pour faire du texte en italique
3940- look_for : ' \[italic\]'
4041 replace_with : " &o"
@@ -69,6 +70,11 @@ regex_actions:
6970 command : " kick %PLAYER% Vous l'avez demandé !"
7071 cancel : false
7172 spigot : true
73+ - look_for : ' thisisabadword'
74+ command : " kick %PLAYER% You are now allowed to say that here!"
75+ permission : " !multichat.chat.badwords" # !... --> Autorisation de contourner l'action (est facultatif)
76+ cancel : true
77+ spigot : true
7278
7379# Dans quels types de chat les action de regex doivent t'elles être appliquées ?
7480# Paramétrage disponible : true ou false
You can’t perform that action at this time.
0 commit comments