This is a great mod with intuitive commands syntax. I love it! Solves the leaky password issue of the other mod, and gives players a nice coloured prefix when they're part of a faction. They also don't do team damage which is great for big battles with lots of chaos.
A few caveats to note for server operators. When this mod is installed, player messages no longer display in the server console. If you have other mods which are intercepting chat messages, there's a chance this mod will prevent those mods from working. I learned this the hard way after my server's chat was intermittently not making it to discord via yl_matterbridge. Turns out this mod conflicts with that mod.
My workaround was to write my own message intercepter, which then calls yl_matterbridge and factions_redo.
-- intercept chat messages-- we trigger the necessary functions so both yl_matterbridge and factions_redo play together nicely-- we return true so no other mod handles message interception.-- @see https://rubenwardy.com/minetest_modding_book/en/players/chat.html--minetest.register_on_chat_message(function(name,message)-- send message to yl_matterbridgeyl_matterbridge.send_to_bridge(name,message)-- display message with factions presetlocalprefix=factions.get_colored_faction_prefix(name)minetest.chat_send_all(prefix..name..": "..message)-- display message in server logcore.log("action","CHAT: <"..name.."> "..message)-- dont let other mods handle chat messagesreturntrueend)
I also had to comment out some lines in player_factions so it wouldn't intercept messages on it's own. There's probably a more elegant way to do this, but I'm not sure what that would look like.
This is a great mod with intuitive commands syntax. I love it! Solves the leaky password issue of the other mod, and gives players a nice coloured prefix when they're part of a faction. They also don't do team damage which is great for big battles with lots of chaos.
A few caveats to note for server operators. When this mod is installed, player messages no longer display in the server console. If you have other mods which are intercepting chat messages, there's a chance this mod will prevent those mods from working. I learned this the hard way after my server's chat was intermittently not making it to discord via yl_matterbridge. Turns out this mod conflicts with that mod.
My workaround was to write my own message intercepter, which then calls yl_matterbridge and factions_redo.
I also had to comment out some lines in player_factions so it wouldn't intercept messages on it's own. There's probably a more elegant way to do this, but I'm not sure what that would look like.
Hmm... I will definitely make sure to update so that it logs chat messages to console. Whats your servers name BTW?
I cant do anything about the yl_matterbridge though obviously :D