[CSM] Implement minetest.get_csm_restrictions()
[oweals/minetest.git] / src / script / scripting_server.cpp
index 1eee24c61a0f35ecd6076f3f7c6ce9d9b8245aa4..2204c6884358216576a80866f6cb570132e2d0db 100644 (file)
@@ -23,6 +23,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "settings.h"
 #include "cpp_api/s_internal.h"
 #include "lua_api/l_areastore.h"
+#include "lua_api/l_auth.h"
 #include "lua_api/l_base.h"
 #include "lua_api/l_craft.h"
 #include "lua_api/l_env.h"
@@ -35,6 +36,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 #include "lua_api/l_nodetimer.h"
 #include "lua_api/l_noise.h"
 #include "lua_api/l_object.h"
+#include "lua_api/l_playermeta.h"
 #include "lua_api/l_particles.h"
 #include "lua_api/l_rollback.h"
 #include "lua_api/l_server.h"
@@ -99,11 +101,13 @@ void ServerScripting::InitializeModApi(lua_State *L, int top)
        NodeMetaRef::Register(L);
        NodeTimerRef::Register(L);
        ObjectRef::Register(L);
+       PlayerMetaRef::Register(L);
        LuaSettings::Register(L);
        StorageRef::Register(L);
        ModChannelRef::Register(L);
 
        // Initialize mod api modules
+       ModApiAuth::Initialize(L, top);
        ModApiCraft::Initialize(L, top);
        ModApiEnvMod::Initialize(L, top);
        ModApiInventory::Initialize(L, top);