M I N E H U T C O M M U N I T Y F A Q
HOW TO MAKE PRIVATE MESSAGES WITH SKRIPT
REQUIREMENTS: Skript
DIFFICULTY: MEDIUM
Introduction:
Skript is a great way to make your server on Minehut, you can do almost anything with it. An example is a private messaging system, which will be focused on here.
How to set up private messaging:
To set up private messaging with Skript, you can use the Send Effect in a custom command. Here's a basic example:
command whisper <player> <text>:
trigger:
send "%player% whispers to you: %arg-text%" to arg-player
send "You whispered to %arg-player%: %arg-text%" to player
Here we have two arguments, <player> and <text>. <player> is the user that you want to send a message to, and <text> is what you want to send to said user.
You can customize the "player whispers to you:" and "You whispered to player:" text with color codes like '&a', and hex codes like '<##ff5555>'. You may customize it however you like.
If you want to add aliases to the command, you can put 'aliases: /alias-name' before the trigger of the command.
Note that you cannot use /msg or /tell, because those commands are occupied by Minehut's private messaging system.
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/XfXo4SJDbiQ
Compiled by the Minehut Staff Team