descriptionA Minetest mod which provides a simple API to display messages at the center of the screen.
ownerWuzzy@disroot.org
last changeTue, 7 Apr 2020 12:31:59 +0000 (7 14:31 +0200)
content tags
add:
README.md

Central Message

Overview

Longer description

This Minetest mod allows other mods to display a short message at the center of the screen. Each message is displayed for a few seconds, then it is removed. When multiple messages are pushed quickly in succession, the messages will be “stacked” on the screen.

This mod adds the server command “cmsg” as well as an API for mods to display messages. The syntax is “/cmsg <player> <text>”. If <player> is “*”, the message is sent to all players.

This mod can be useful to inform about all sorts of events and is an alternative to use the chat log to display special events.

Some usage examples:

Settings

This mod can be configured via minetest.conf.

Currently, these settings are recognized:

API

cmsg.push_message_player(player, message)

Display a new message to one player only.

Parameters

Return value

Always nil.

cmsg.push_message_all(message)

Display a new message to all connected players.

Parameters

Return value

Always nil.

shortlog
2020-04-07 WuzzyAdd localemaster
2020-04-07 WuzzyAdd z_index
2019-09-03 WuzzyAdd locale support
2019-03-20 WuzzyUse new 5.0.0 mod.conf format
2019-03-20 WuzzyMove to MIT License
2017-02-09 WuzzyRemove core.colorize
2017-02-09 WuzzyFix crash when using /help cmsg
2017-02-09 WuzzyAdd cmsg chat command
2016-11-12 WuzzyVersion 0.3.00.3.0
2016-11-12 WuzzyFix typo in README
2016-11-12 WuzzyFix crash when player leaves b4 msg disappears
2016-11-09 WuzzyFix README.md syntax error
2016-11-04 Wuzzy“for a few seconds”
2016-11-04 WuzzyAllow to config message duration
2016-11-04 WuzzyFix README typos
2016-11-04 WuzzyAdd mod.conf
...
tags
5 years ago 0.3.0 Version 0.3.0
heads
4 years ago master
9 years ago noworkaround