• Hey! Register here to create your account, engage with the community, and talk about what is new!

How to hide chat messages?

mrbeaver2K

New member
Joined
Jan 21, 2025
Messages
12
Reaction score
0
Is there a way to
A: Keep chat messages sent by players to stay on one plot, rather than being sent to the entire node
B: Force players to use @ to chat
without Overlord?
 

CoderElias

Notorious member
Overlord
Joined
Jun 15, 2022
Messages
103
Reaction score
17
A: There currently isn't a way to do this with code, but you could tell players to run the command /c l when they join. This will set their chat mode to local which, like you wanted, will only display messages from players on the plot they are on (and if you send a message only players on their plot will see it). I have heard something about a code block to force someone into a chat mode, even if that is going to be added it hasn't been added yet.
B: Without Overlord this sadly isn't possible because you can only set a player's chat style with Overlord and commands are also Overlord exclusive.
 

ImaLEAF

Forum adept
Emperor
Joined
Sep 20, 2021
Messages
158
Reaction score
23
A: There currently isn't a way to do this with code, but you could tell players to run the command /c l when they join. This will set their chat mode to local which, like you wanted, will only display messages from players on the plot they are on (and if you send a message only players on their plot will see it). I have heard something about a code block to force someone into a chat mode, even if that is going to be added it hasn't been added yet.
B: Without Overlord this sadly isn't possible because you can only set a player's chat style with Overlord and commands are also Overlord exclusive.
commands are emperor exclusive but yeah
 

mrbeaver2K

New member
Joined
Jan 21, 2025
Messages
12
Reaction score
0
A: There currently isn't a way to do this with code, but you could tell players to run the command /c l when they join. This will set their chat mode to local which, like you wanted, will only display messages from players on the plot they are on (and if you send a message only players on their plot will see it). I have heard something about a code block to force someone into a chat mode, even if that is going to be added it hasn't been added yet.
B: Without Overlord this sadly isn't possible because you can only set a player's chat style with Overlord and commands are also Overlord exclusive.
I thought messages with [O] chat style were automatically local?
 

CoderElias

Notorious member
Overlord
Joined
Jun 15, 2022
Messages
103
Reaction score
17
I thought messages with [O] chat style were automatically local?
The [O] behind someone's name is a rank, overlord to be precise. That doesn't say anything about if a player is using local chat or not, but I can assure you that most people who buy overlord have spent quite some time on DiamondFire, because of that there is a larger chance they'll be using local chat.

Though sadly, there isn't a way to detect if a player is using local chat. You could always ask them, but that can be very manual and could take a long time. Also good to note is that with the new chat event, which is cancellable, you can hide player's chat messages.
 

CoderElias

Notorious member
Overlord
Joined
Jun 15, 2022
Messages
103
Reaction score
17
Sorry! I meant the chat style code block associated with Overlord, not the literal "[O]" in chat.
Sorry for misunderstanding! But the Chat Style code block doesn't automatically put the player in local chat, the way it works is interesting. Let's think of an example (in a scenario where the chat event didn't yet exist). You created a feature where you could mute players. The chat style of these muted players would be obfuscated so the players on the plot won't be able to read the message, essentially "muting" the player. Though, this chat style is only for players on the plot. If the muted player wasn't in local chat, the other people on different plots/at node spawn would see the muted player's normal message without it being obfuscated.

Now that the Chat Event codeblock has been added, there is a new way to hide player's chat messages. This codeblock is sadly Emperor exclusive (if I remember correctly), but if you do own Emperor or higher you can mute players in a much more aesthetic way. This code blocks works in ANOTHER different way, and again, is quite confusing. If you have a chat event codeblock that just plays a sound when someone sends a message nothing will change, if they're in local chat only people on the plot will see it. If not; everyone (that is not in local chat) will see the message. There is also a possibility that the GAME sends the message instead, in this case only the players on the plot will be able to see the message, no other players. This essentially acts like local chat, though without the player having to run any commands/change anything. If the chat event is cancelled however, no message will be sent. Not to players on the plot or to players at spawn.

Then there's the /gchat or alternatively the /gc command. Using this command will send messages normally in chat without being affected by the plot's chat event. For this to work you must be in global chat, where everyone can see your messages and you can see other people's messages (from players that aren't on your same plot and aren't in local chat). Players that are in local chat won't see that message, only players in global chat (like mentioned in the name of the command, /globalchat) will see it. Weirdly enough the global chat message WILL be affected by the player's chat style, so you're still able to avoid the player from sending message even if they're muted.

Sorry for the extreme yap, I only noticed how much it really was after I wrote everything. Feel free to ask more questions if you have any!
(Information provided may not be 100% accurate, I wrote this using only my memory. Please point out inaccurate information, I will change it as soon as possible if noticed.)
 
Top Bottom