first commit
Some checks failed
luacheck / build (push) Has been cancelled

This commit is contained in:
Rainer 2025-08-22 02:35:24 +02:00
commit 5c61b1aa93
19 changed files with 479 additions and 0 deletions

40
README.md Normal file
View file

@ -0,0 +1,40 @@
# minenews
Localized and simple server news for Minetest servers. Original version by Shara
RedCat, forked and improved by Ronoaldo.
[![ContentDB](https://content.minetest.net/packages/ronoaldo/minenews/shields/downloads/)](https://content.minetest.net/packages/ronoaldo/minenews/)
![Localized server news for Minetest](img/open-graph.png)
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. The mod will fallback 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.
## Screenshots
Sample news dialog in English:
![News in English](screenshot.png)
And a translated news file shown for the user if the language is set to `pt_BR`:
![News in Portuguese](screenshot_pt.png)
# License
Code for this mod is released under MIT (https://opensource.org/licenses/MIT).
This mod uses textures from Bootstrap Icons, also licensed under MIT
(https://opensource.org/licenses/MIT).