Chat Essentials prefix Replacement

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

MeHow

Active Member
Feb 6, 2017
140
13
18
22
Lithuania
Hello guys, I know it's easy to do , but a lot of new skripters asking how to format and replace essentials prefix without canceling chat and broadcasting message.

upload_2018-6-25_12-48-22.png

code_language.skript:
on chat:
    event.setFormat(event.getFormat().replace("{friend}", "&etest"))

code_language.skript:
format: '{friend}&f {DISPLAYNAME}&7> &7{MESSAGE}.'
skript , skript-mirror
 
i don't mean to sound rude here... but why not just change
code_language.skript:
format: '{friend}&f {DISPLAYNAME}&7> &7{MESSAGE}.'
to
code_language.skript:
format: '&etest&f {DISPLAYNAME}&7> &7{MESSAGE}.'
?

Seems a lot simpler than having to write a skript to change something that is part of a config file
 
ohhhhh i see what you are doing there, gotcha.... okay yeah that makes sense.
i also feel rather than doing it with skript-mirror you could do it without add-ons and do:

code_language.skript:
on chat:
    set the chat format to "[player]: [message]"

And then within that put your variables or whatever you need to do there
 
Last edited: