Last Login Signs

Adds signs that show the last login of players that right-clicked them

Building Multiplayer-focused

Download (9 KB)
For Luanti 5.4 and above

How do I install this?

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 to last_login_signs.rightclick_sign
  • after_place_node defaults to last_login_signs.after_place_node

Functions

  • last_login_signs.register_sign(name, def) described above
  • function last_login_signs.rightclick_sign(pos, node, player) adds the player to the sign
  • function last_login_signs.after_place_node(pos, ...) writes the initial text to the sign
  • function 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.

Reviews

Review

Do you recommend this mod?