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:
parent
ff4fef570e
commit
f73534640a
6 changed files with 24 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue