I found that there is a PlayerEvents.decorateChat that can be used, but it seems that the previous <username> cannot be canceled
https://cdn.discordapp.com/attachments/1148201161405501450/1148203154169659482/image.png
6 messages · Page 1 of 1 (latest)
I found that there is a PlayerEvents.decorateChat that can be used, but it seems that the previous <username> cannot be canceled
https://cdn.discordapp.com/attachments/1148201161405501450/1148203154169659482/image.png
Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!
Ticket re-opened!
How to cancel the <username> in front of the message
You could just cancel the original message event and resend the content of the message in whatever format you want from the server
That's exactly what I'm doing now
PlayerEvents.chat((event) => {
const { message, server, username } = event;
const date = new Date();
server.tell([
Text.darkGray(
(date.getHours() + "").padEnd(2, 0) +
":" +
(date.getMinutes() + "").padEnd(2, 0)
),
" | ",
Text.darkGreen(username),
": ",
message,
]);
event.cancel();
});