License: LGPL 3.0
Github: https://github.com/taikedz/minetest-chat_modes
ZIP: https://github.com/taikedz/minetest-cha ... master.zip
+++
This mod alters the chat behaviour so that player chats don't necessarily get broadcast to all.
It is implemented as an API so that other mods can register their own rules for chat propagation. The main modes shipped by default are as follows (and each one can be turned off individually through minetest.conf settings):
- * deaf mode -- players can turn off normal chat whilst still receiving messages from mods that explicitly send feedback via chat
* shout -- just like normal chat, any message sent to chat gets sent to all players (except deaf players)
* channel -- allows players to chat exclusively in named channels
* proximity -- players' messages are broadcast only to other players within a given distance
Additional features include @mention chatting, where a message is sent to players directly. Turn off this feature with the "chat_modes.no_at_replies"
- * If there is a list of @players at the start of the message, the chat will ONLY be sent to them
* f the list is not at the beginning, then the message will be sent to all who would be affected by the active mode, as well as the players in the @mentions
Example: @admin @moderator I want to report @cheater and @griefer will only be sent to "@admin" and "@moderator"
Example: Hey guys can @friend @niceguy and @ally join our channel? will send to all players who would normally receive the message in the player's mode, as well as to @friend, @niceguy and @ally
Setup
It is setup such that it needs to be explicitly activated, so it can be included in a subgame without affecting normal functions when it is not desired.
Steps to set up:
- * Download the mod and extract it to your mods folder
- Code: Select all
chat_modes.active = true
chat_modes.no_at_replies = true
default_privs = shout,interact,cmodeswitch
* Edit your minetest.conf and add:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
This will activate the mod with the default pre-defined chat mode features (deaf, shout, proximity, channel, @mentions)
This mod is pretty much finished now. If you would like to suggest a mode or feature to include by default, please raise an "issue" on the github page, clearly indicating the intended behaviour.
If you wish to make a pull request, do this against the "dev" branch.
Ideally it could be included in minetest_game, so that the default game can benefit ab initio from advanced chat options after being explicitly activated.
Any thoughts or comments welcome.