Guida Come cambiare il colore della chat con Essentials

Stato
Discussione chiusa ad ulteriori risposte.

Samaritan

Utente Palladium
11 Agosto 2011
4,477
272
342
1,478
Ultima modifica:
Ciao ragazzi di Inforge.Net

In questa guida vi farò vedere come cambiare il colore della chat quando si scrive.

Facciamo qualche esempio

[Utente] COLORE DELLA CHAT
[Founder] COLORE DELLA CHAT
[Admin] COLORE DELLA CHAT
[Mod] COLORE DELLA CHAT
[Helper] COLORE DELLA CHAT

Questo che vi ho fatto vedere si possono fare con tutti i gruppi che noi vogliamo creare, ci occorrerà solo un plugin!

http://dev.bukkit.org/bukkit-plugins/essentials/

Creiamo il nostro gruppo e diamoci i permessi.

La guida è stata creata da FoxySeta modificata da GodOfShadow.

Adesso apriamo il config di essentials e andiamo a trovare la voce che dice "Essentials Chat"

Codice:
[COLOR=#006400] ############################################################
# +------------------------------------------------------+ #
# | EssentialsChat | #
# +------------------------------------------------------+ #
############################################################
#
# If EssentialsChat is installed, this will define how far a player's voice travels, in blocks. Set to 0 to make all chat global.
# Note that users with the "essentials.chat.spy" permission will hear everything, regardless of this setting.
# Users with essentials.chat.shout can override this by prefixing text with an exclamation mark (!)
# Or with essentials.chat.question can override this by prefixing text with a question mark (?)
# You can add command costs for shout/question by adding chat-shout and chat-question to the
[/COLOR][COLOR=#008000]command costs section."[/COLOR][COLOR=#000000]
chat:
radius: 0[/COLOR][COLOR=#006400]
# If set to the default chat format which "should" be compatible with ichat.
[/COLOR][COLOR=#000000]format: [/COLOR][COLOR=#ff0000]'<{DISPLAYNAME}> {MESSAGE}'[/COLOR]
[COLOR=#008000]#format: '&7[{GROUP}]&f {DISPLAYNAME}&7:&f {MESSAGE}'[/COLOR]
[COLOR=#006400]# You can also have group-specific formats, uncomment to enable:
[/COLOR][COLOR=#008000]group-formats:[/COLOR][COLOR=#006400]
# Default: '{WORLDNAME} {DISPLAYNAME}&7:&f {MESSAGE}'
# Admins: '{WORLDNAME} &c[{GROUP}]&f {DISPLAYNAME}&7:&c {MESSAGE}'[/COLOR]
La scritta in rosso è quella modificare

Adesso andremo a modificare questa stringa qui :

Codice:
[B]format: '<{DISPLAYNAME}> &5{MESSAGE}'[/B]

Lo modificheremo a tutti

Per cambiare colore andiamo a modificare quel simbolo "&5" lì andrete a mettere un colore che piace a voi.

Uscirà così:

<[Utente] GodOfShadow> "COLORE"Messaggio"

Ho creato dei gruppi con il mio plugin come faccio a modificargli il colore di quando scrive?

Basta ad andare a copiare due stringhe:

Codice:
[B]# Default: '{WORLDNAME} {DISPLAYNAME}&7:&f {MESSAGE}'
# Admins: '{WORLDNAME} &c[{GROUP}]&f {DISPLAYNAME}&7:&c {MESSAGE}'[/B]

Sotto alla stringa ci aggiungete

Codice:
[B]NOMEGRUPPO: '{WORLDNAME} &c[{GROUP}]&f {DISPLAYNAME}&7:&c {MESSAGE}'[/B]

Con i colori a vostro piacimento.
 
  • Mi piace
Reazioni: AlessioDP
Stato
Discussione chiusa ad ulteriori risposte.