WIP [Mod] Minetest Server News [minenews]

Post Reply
ronoaldo
Member
Posts: 177
Joined: Mon Dec 07, 2020 01:04
GitHub: ronoaldo
IRC: ronoaldo
In-game: RonoaldoKakashi
Location: São Paulo, Brasil
Contact:

WIP [Mod] Minetest Server News [minenews]

by ronoaldo » Post

Localized and simple server news for Minetest servers. Original version by Shara RedCat, forked and improved by Ronoaldo.

This mod displays a formspec when the player joins. To set the news text to display, make a file named news_lang_code.md in your world directory for each locale you plan to support, falling back to a news.md file if no localized version is found.

The contents of this file will be displayed to the player, interpreted as Markdown. When changing the contents of the file, there is no need to restart the server for it to update in game so you can also test quickly the display.

Players can also type /news to display the formspec at any time.

Players with the news_bypass privilege will not see the formspec when they sign in, but can still use the /news command.

Available for download here: https://github.com/ronoaldo/minenews

Screenshot:

Image
Servers: Mercurio | Tools: ContentDB CLI | Mods: minenews

User avatar
Lone_Wolf
Member
Posts: 2575
Joined: Sun Apr 09, 2017 05:50
GitHub: LoneWolfHT
IRC: LandarVargan
In-game: LandarVargan

Re: WIP [Mod] Minetest Server News [minenews]

by Lone_Wolf » Post

Is there a chance this could be made to only show when there is new content the player hasn't seen yet?
My ContentDB -|- Working on CaptureTheFlag -|- Minetest Forums Dark Theme!! (You need it)

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests