1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

[CSM] Add event on_connect player API lua (#5540)

* Add event on_connect player API lua
This commit is contained in:
Vincent Glize 2017-04-08 08:20:30 +02:00 committed by Loïc Blot
parent ff4fef570e
commit f73534640a
6 changed files with 24 additions and 0 deletions

View file

@ -6,6 +6,10 @@ core.register_on_shutdown(function()
print("[PREVIEW] shutdown client")
end)
core.register_on_connect(function()
print("[PREVIEW] Player connection completed")
end)
-- This is an example function to ensure it's working properly, should be removed before merge
core.register_on_receiving_chat_messages(function(message)
print("[PREVIEW] Received message " .. message)