44846c8 Fix signs not updating on player leave
~fgaz pushed to ~fgaz/minetest-last_login_signs git
44846c8 Fix signs not updating on player leave
~fgaz pushed to ~fgaz/minetest-last_login_signs git
This mod adds signs that show the last login of players that right-clicked them.
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
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 updateSend a patch to this mailing list a pull request to the Codeberg mirror.
Code is licensed under the EUPL-1.2-or-later. You can find the text of this license in the LICENSE file or in multiple languages at https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
Assets are licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative Commons, PO Box 1866, Mountain View, CA 94042, USA.