M I N E H U T C O M M U N I T Y F A Q
HOW TO FORMAT CHAT WITH SKRIPT
REQUIREMENTS: Skript
DIFFICULTY: MEDIUM
Introduction:
For the following tutorial, it is assumed that the reader has a basic knowledge of how to set up a server, install a plugin on said server and join it. It is also assumed that the reader has basic file manipulation skills within the Minehut File Manager, as well a moderate knowledge of the plugin 'Skript'.
The plugin Skript is a great way to modify your server on Minehut. It is incredibly versatile and you can do almost anything with it. An example of this is formatting chat, which I will be focussing on today.
How to format chat:
To format chat, the 'chat format' expression inside of the 'on chat' event can be used. A very basic example of this could entail:
on chat:
set the chat format to "%player% said %message%"
here we use %player% to represent the player chatting and %message% to represent the message the player sends. You can include color codes such as '&3' or hex codes such as '<##ff00fff>', your chat message can say whatever you want it to say.
You can also use something like this to merge your Skript chat format with your permission plugin's prefix:
on chat:
if player is op:
set the chat format to "%player's display name%&f: %message%"
else:
set the chat format to "%player's display name%&7: %message%"
Require further assistance?:
If you need more help on this topic, head over to this section of forums, or join our Discord!
https://youtu.be/3avLji1hwtk
Compiled by the Minehut Staff Team