This mod adds signs that show the last login of players that right-clicked them. A wooden sign and a steel sign are included, and more can be added through the API.
API
Registering a sign
Use last_login_signs.register_sign(nodename, def)
like you would use
minetest.register_node
or
signs_lib.register_sign
.
Two definition settings are different from signs_lib.register_sign
:
on_rightclick
defaults tolast_login_signs.rightclick_sign
after_place_node
defaults tolast_login_signs.after_place_node
Functions
last_login_signs.register_sign(name, def)
described abovefunction last_login_signs.rightclick_sign(pos, node, player)
adds the player to the signfunction last_login_signs.after_place_node(pos, ...)
writes the initial text to the signfunction last_login_signs.update_sign(pos, node)
forces a sign update
Contributing
Send a patch to this mailing list a pull request to the Codeberg mirror.
Good
eazy mod,but useful
*sobbing*
this can become sad as time pass by