Aller au contenu
  • 0

La couleur ne marche pas.


Question

Posté(e)

Bonjour, j'ai créer un skript pour changer le message de join depuis in game.

Si je fais: /cjm join &1Bonsoir

Quand je me co j'ai &1Bonsoir Calvineries

Au lieu de: Bonsoir Calvineries

 

J'ai déja un peu cherché sur internet, j'ai trouver qui faut mettre %coloured arg-1% mais je ne sais pas ou.

De plus %coloured arg-1% voudrais dire couleur activé dans argument 1 alors que j'utilise un arg-2

 

command /cjm <text> [<text>]:
   usage: &6Utilise: &e/cjm help
   permission: customjoin.admin
   trigger:
       if arg 1 is "update":
           send "&fTu utilise la &a2.2&f, SkriptMC: https://skript-mc.fr/forum/resources/custom-join-message-gui.1396/"
       if arg 1 is "lang":
           send "&fFor English use this: http://bit.ly/2Db2ipn"
           send "&fFor French use this: http://bit.ly/2FjSN7N"
       if arg 1 is "help":
           send "&6------------------------------------------------"
           send "&6Aide: CustomJoinMessage"
           send "&e /cjm help &f- Voir l'aide"
           send "&e /cjm config &f- Ouvrir la configuration"           
           send "&e /cjm update &f- Check Update"
           send "&e /cjm join &b<Message> &f- Definir un message de join"
           send "&e /cjm leave &b<Message> &f- Definir un message de leave"
           send "&e /cjm death &b<Message> &f- Definir un message de mort"
           send "&e /cjm lang &f- Definir la langue"
           send "&6Page &b1&6/1"
           send "&6------------------------------------------------"
       if arg 1 is "join":
           set {joinplay} to arg 2
           message "&6[CJM] &4> &cModification effectuée" to player
       if arg 1 is "leave":
           set {leaveplay} to arg 2
           message "&6[CJM] &4> &cModification effectuée" to player
       if arg 1 is "death":
           set {deathplay} to arg 2
           message "&6[CJM] &4> &cModification effectuée" to player
       if arg 1 is "config":
           open chest with 3 rows named "&4CustomJoinMessage &aConfig" to player
           wait 1 tick
           format slot 0 of player with wool named "&3[&e-&3] &3[&b+&3] &3[&c!&3]" to close then run [make player execute command "customjoinone"]
           format slot 1 of player with wool named "&4[&1-&4] &4[&6+&4] &4[&2!&4]" to close then run [make player execute command "customjointwo"]
           format slot 2 of player with wool named "&e[&5-&e] &e[&a+&e] &e[&7!&e]" to close then run [make player execute command "customjointhree"]
           format slot 3 of player with wool named "&6[&f-&6] &6[&a+&6] &6[&0!&6]" to close then run [make player execute command "customjoinfour"]
           format slot 4 of player with wool named "&2[Leave] &6[Join] &4[Death]" to close then run [make player execute command "customjoinfive"]
           format slot 5 of player with wool named "&cBye &eHello &aDeath" to close then run [make player execute command "customjoinsix"]
           format slot 18 of player with redstone named "Manual Check Update" to close then run [make player execute command "cjm update"]
           format slot 19 of player with command block named "Aide" to close then run [make player execute command "cjm help"]

command /customjoinmessage:
   trigger:
       send "&fUtilise /cjm"

command /customjoinone:
   trigger:
       if player have permission "customjoin.admin":
           set {joinplay} to "&3[&b+&3]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {leaveplay} to "&3[&e-&3]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {deathplay} to "&3[&c!&3]"
           message "&6[CJM] &4> &cModification effectuée" to player

command /customjointwo:
   trigger:
       if player have permission "customjoin.admin":
           set {joinplay} to "&4[&6+&4]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {leaveplay} to "&4[&1-&4]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {deathplay} to "&4[&2!&4]"
           message "&6[CJM] &4> &cModification effectuée" to player

command /customjointhree:
   trigger:
       if player have permission "customjoin.admin":
           set {joinplay} to "&e[&a+&e]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {leaveplay} to "&e[&5-&e]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {deathplay} to "&e[&7!&e]"
           message "&6[CJM] &4> &cModification effectuée" to player

command /customjoinfour:
   trigger:
       if player have permission "customjoin.admin":
           set {joinplay} to "&6[&a+&6]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {leaveplay} to "&6[&f-&6]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {deathplay} to "&6[&0!&6]"
           message "&6[CJM] &4> &cModification effectuée" to player

command /customjoinfive:
   trigger:
       if player have permission "customjoin.admin":
           set {joinplay} to "&6[Join]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {leaveplay} to "&2[Leave]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {deathplay} to "&4[Death]"
           message "&6[CJM] &4> &cModification effectuée" to player

command /customjoinsix:
   trigger:
       if player have permission "customjoin.admin":
           set {joinplay} to "&eHello"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {leaveplay} to "&cBye"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {deathplay} to "&aDeath"
           message "&6[CJM] &4> &cModification effectuée" to player

on join:
   if {joinplay} is set:
       set join message to "%{joinplay}% %player%"
on death:
   if {joinplay} is set:
       set death message  to "%{deathplay}% %player%"
on quit:
   if {joinplay} is set:
       set quit message to "%{leaveplay}% %player%"

Merci,

4 réponses à cette question

Messages recommandés

  • 0
Posté(e)
Bonjour, j'ai créer un skript pour changer le message de join depuis in game.

Si je fais: /cjm join &1Bonsoir

Quand je me co j'ai &1Bonsoir Calvineries

Au lieu de: Bonsoir Calvineries

 

J'ai déja un peu cherché sur internet, j'ai trouver qui faut mettre %coloured arg-1% mais je ne sais pas ou.

De plus %coloured arg-1% voudrais dire couleur activé dans argument 1 alors que j'utilise un arg-2

 

command /cjm <text> [<text>]:
   usage: &6Utilise: &e/cjm help
   permission: customjoin.admin
   trigger:
       if arg 1 is "update":
           send "&fTu utilise la &a2.2&f, SkriptMC: https://skript-mc.fr/forum/resources/custom-join-message-gui.1396/"
       if arg 1 is "lang":
           send "&fFor English use this: http://bit.ly/2Db2ipn"
           send "&fFor French use this: http://bit.ly/2FjSN7N"
       if arg 1 is "help":
           send "&6------------------------------------------------"
           send "&6Aide: CustomJoinMessage"
           send "&e /cjm help &f- Voir l'aide"
           send "&e /cjm config &f- Ouvrir la configuration"          
           send "&e /cjm update &f- Check Update"
           send "&e /cjm join &b<Message> &f- Definir un message de join"
           send "&e /cjm leave &b<Message> &f- Definir un message de leave"
           send "&e /cjm death &b<Message> &f- Definir un message de mort"
           send "&e /cjm lang &f- Definir la langue"
           send "&6Page &b1&6/1"
           send "&6------------------------------------------------"
       if arg 1 is "join":
           set {joinplay} to arg 2
           message "&6[CJM] &4> &cModification effectuée" to player
       if arg 1 is "leave":
           set {leaveplay} to arg 2
           message "&6[CJM] &4> &cModification effectuée" to player
       if arg 1 is "death":
           set {deathplay} to arg 2
           message "&6[CJM] &4> &cModification effectuée" to player
       if arg 1 is "config":
           open chest with 3 rows named "&4CustomJoinMessage &aConfig" to player
           wait 1 tick
           format slot 0 of player with wool named "&3[&e-&3] &3[&b+&3] &3[&c!&3]" to close then run [make player execute command "customjoinone"]
           format slot 1 of player with wool named "&4[&1-&4] &4[&6+&4] &4[&2!&4]" to close then run [make player execute command "customjointwo"]
           format slot 2 of player with wool named "&e[&5-&e] &e[&a+&e] &e[&7!&e]" to close then run [make player execute command "customjointhree"]
           format slot 3 of player with wool named "&6[&f-&6] &6[&a+&6] &6[&0!&6]" to close then run [make player execute command "customjoinfour"]
           format slot 4 of player with wool named "&2[Leave] &6[Join] &4[Death]" to close then run [make player execute command "customjoinfive"]
           format slot 5 of player with wool named "&cBye &eHello &aDeath" to close then run [make player execute command "customjoinsix"]
           format slot 18 of player with redstone named "Manual Check Update" to close then run [make player execute command "cjm update"]
           format slot 19 of player with command block named "Aide" to close then run [make player execute command "cjm help"]

command /customjoinmessage:
   trigger:
       send "&fUtilise /cjm"

command /customjoinone:
   trigger:
       if player have permission "customjoin.admin":
           set {joinplay} to "&3[&b+&3]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {leaveplay} to "&3[&e-&3]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {deathplay} to "&3[&c!&3]"
           message "&6[CJM] &4> &cModification effectuée" to player

command /customjointwo:
   trigger:
       if player have permission "customjoin.admin":
           set {joinplay} to "&4[&6+&4]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {leaveplay} to "&4[&1-&4]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {deathplay} to "&4[&2!&4]"
           message "&6[CJM] &4> &cModification effectuée" to player

command /customjointhree:
   trigger:
       if player have permission "customjoin.admin":
           set {joinplay} to "&e[&a+&e]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {leaveplay} to "&e[&5-&e]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {deathplay} to "&e[&7!&e]"
           message "&6[CJM] &4> &cModification effectuée" to player

command /customjoinfour:
   trigger:
       if player have permission "customjoin.admin":
           set {joinplay} to "&6[&a+&6]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {leaveplay} to "&6[&f-&6]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {deathplay} to "&6[&0!&6]"
           message "&6[CJM] &4> &cModification effectuée" to player

command /customjoinfive:
   trigger:
       if player have permission "customjoin.admin":
           set {joinplay} to "&6[Join]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {leaveplay} to "&2[Leave]"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {deathplay} to "&4[Death]"
           message "&6[CJM] &4> &cModification effectuée" to player

command /customjoinsix:
   trigger:
       if player have permission "customjoin.admin":
           set {joinplay} to "&eHello"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {leaveplay} to "&cBye"
           message "&6[CJM] &4> &cModification effectuée" to player
       if player have permission "customjoin.admin":
           set {deathplay} to "&aDeath"
           message "&6[CJM] &4> &cModification effectuée" to player

on join:
   if {joinplay} is set:
       set join message to "%{joinplay}% %player%"
on death:
   if {joinplay} is set:
       set death message  to "%{deathplay}% %player%"
on quit:
   if {joinplay} is set:
       set quit message to "%{leaveplay}% %player%"

Merci,

Set {tavariable} to coloured arg 1 ou "texte"

  • 0
Posté(e)
Set {tavariable} to coloured arg 1 ou "texte"

"j'ai trouver qui faut mettre %coloured arg-1% mais je ne sais pas ou."

Possible de m'aider un peu plus ?

×
×
  • Créer...

Information importante

Nous avons placé des cookies sur votre appareil pour aider à améliorer ce site. Vous pouvez choisir d’ajuster vos paramètres de cookie, sinon nous supposerons que vous êtes d’accord pour continuer.