[CSM] minetest.localplayer is nil

Post Reply
User avatar
AFCM
Member
Posts: 14
Joined: Tue Jun 30, 2020 12:21
GitHub: AFCMS
IRC: AFCM
In-game: AFCM

[CSM] minetest.localplayer is nil

by AFCM » Post

Hi,
I have tried to create a simple csm who send to the player a chat message when he connect.
But minetest.localplayer and core.localplayer are nil, so I can't get the player name.
It is very strange, because the default test csm work perfectly (and use core.localplayer)
minetest.localplayer is referenced in client_lua_api.txt
All csm restriction are disabled and I used minetest 5.3.0
Can everyone help me ?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest