How do I disable chat?
I am making a mini-game for my server, working with version 1.7.10, and using spigot/bukkit.
Is there any way to disable players from chatting, but still allow for any command outputs to still appear, for example, a command blocking executing /tellraw
.
I want all players to be unable to use chat, including the /msg
, /tell
and /say
commands.
Best Answer
You can use this: http://dev.bukkit.org/bukkit-plugins/per-world-chat-plus/
But needed thing is that you create its own map for the "event", so players will be on separate map (So you need some Multiverse plugin). The plus side of this is that players will be ABLE to chat, but only with people on same map - so it is possibly to make team events or so, still maintaining that the "main" chat will be totally separated from them.
However probably for the /tell etc commands you will need to use permissions (and yes, you can disable permission to chat on per-world basis, too, however that is kinda brutal and not player friendly...) , if there is no feature in that plugin for this, too.
So all you need is to find permission nodes for all commands you want to disable and (via PEX for example) disable those commands in the world your game is being played in. For PEX , just use something like this with negative permission and putting it into the world you have it in :
/pex group default add -<permission.node.you.want.to.disable> <worldname>
This will make all people in default group to not be able to use those commands in the world mentioned, but they will be able to use them otherwise.
Another possible solution can be with WorldGuard plugin, then you don't need to have separate world ( but it still be better) , only defined region. Then you can use flags (example):
/region flag <name of region> blocked-cmds /tell,/say,/msg,/t,/pm
/region flag <name of region> send-chat deny
/region flag <name of region> receive-chat deny
HOWEVER I did not tested if those last two flags won't disable also sending of commands and receiving /tellraw messages. (if it is for pure player chat or total chat with everything in it). It will be better solution, if it won't block everything, but well, I'm unable to test it for now.
Pictures about "How do I disable chat?"
Quick Answer about "How do I disable chat?"
Can you turn off Chat on Facebook?
Click the Gear icon at the lower right corner of your screen, on the chat box. This will open the Chat Settings menu. Select "Turn off chat." A menu of various chat settings options to choose from will open; just click on the option you prefer.How do you change from Chat to text?
Pro tip: Switch back to a standard SMS client in AndroidWhat does disable Chat mean?
This basically means that chats will not be recorded, so that they cannot be searched or accessed after the session closes.How do you turn on Chat features on Samsung messages?
The rollout of RCS messaging features was a slow and frustrating process for all Android users....Select Settings.More answers regarding how do I disable chat?
Answer 2
Find this plugin here.
This useful plugin, ClearChat, allows you to clear other players' chats.
If you want to, you can create a command block loop to constantly clear players' chats. Just use the command /cc
.
Unfortunately, this does not include functionality to disable chat commands. You might be able to disable those using PermissionsEx. That documentation is located here under the "User's permission management" subheader.
Hope this helps,
HewwoCraziness
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: SHVETS production, SHVETS production, Meruyert Gonullu, Meruyert Gonullu