Minetest : Chat Modes (chat_modes
)
A Minetest mod to enable multiple chat modes.
By default, chat_modes
is not active. Set chat_modes.active = true
to activate it.
Players hoping to use the chat_modes
commands need to have both the shout
and cmodeswitch
privileges.
Players without shout will not be able to send messages at all.
Players with shout
, but without cmodeswitch
, will only be able to use the default mode, as configured in minetest.conf
Default Modules
A few modules are provided by default:
shout
-- this is the default module, which allows the player to broadacast a message to all connected players.proximity
-- this module sends a message to players within the proximity of the sending playerchannel
-- this module sends messages only to players who are in the shout channel. A player can only be in one channel at a time.
It is possible to disable these modules by specifying a comma-separated list to chat_modes.available
.
By default, this is set to
chat_modes.available = shout,proximity,channel
Usage
Any player with the shout
privilege can deafen themselves
/deaf
- This commands toggles the player's
deaf
mode. If deaf mode is on, they do not receive chat messages, regardless of their chat mode.
- This commands toggles the player's
Players with both the shout
and cmodeswitch
privileges has access to the following commands:
/chatmode MODE [ARGUMENTS ...]
- this sets a new chat mode. Some chat modes can take extra arguments, others not.
/chatmodes
- this lists the chat modes available, with a description
Players with the basic_privs
privilege have access to moderator messaging
/assignchatmode PLAYERNAME MODE [ARGUMENTS]
- Assigns a chat mode to a given player
/wall GLOBALMESSAGE
- Send message to all connected players, regardless of their
deaf
status
- Send message to all connected players, regardless of their
API
See the API documentation for details on how to leverage the chat_modes
API.