#Blocking Characters in chat

1 messages · Page 1 of 1 (latest)

solemn lake
#
import { world } from "@minecraft/server";
world.beforeEvents.chatSend.subscribe(async (eventData) => {
  if(eventData.message.includes("")) {
    eventData.cancel = true
    eventData.sender.runCommand("kick @s")
  }
});
```Needs Beta API + dosen't work for /say or /msg
fair marsh
tawdry lily
#

@fair marsh how else would we do it then

fair marsh
tawdry lily
#

wtf

#

JSON ui for kicking someone?

#

You’re joking

fair marsh
#

Blocking characters in chat

#

It’s the title of the post..

#

If only we could modify the profanity filter

tawdry lily
#

@fair marsh "Blocking characters" aka preventing them from sending