aboutsummaryrefslogtreecommitdiff
path: root/clientmods/preview
diff options
context:
space:
mode:
authorVincent Glize <vincentglize@hotmail.fr>2017-04-08 08:20:30 +0200
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-04-08 08:20:30 +0200
commitf73534640a18709921519ee43110292cf658e67f (patch)
tree3a318762bb4768e4826ae216c1aa6e5ab026a437 /clientmods/preview
parentff4fef570e8df6ce44ceb1d9071f860474eb1f95 (diff)
downloadminetest-f73534640a18709921519ee43110292cf658e67f.tar.gz
minetest-f73534640a18709921519ee43110292cf658e67f.tar.bz2
minetest-f73534640a18709921519ee43110292cf658e67f.zip
[CSM] Add event on_connect player API lua (#5540)
* Add event on_connect player API lua
Diffstat (limited to 'clientmods/preview')
-rw-r--r--clientmods/preview/init.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua
index 3c96fae55..5c0628bfe 100644
--- a/clientmods/preview/init.lua
+++ b/clientmods/preview/init.lua
@@ -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)