aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_nodemeta.cpp
Commit message (Collapse)AuthorAge
* Fix object reference pushing functions when called from coroutinesShadowNinja2014-10-07
|
* Only push the Lua error handler onceShadowNinja2014-04-27
|
* Remove lua_State parameter from LuaError::LuaErrorShadowNinja2014-03-15
|
* Revert "Make sure we get a stacktrace for as many lua errors as possible"ShadowNinja2014-03-15
| | | | | | | | This reverts commit 362ef5f6ced862daa4733034810d0b07e2ad5d89. Stack tracebacks couldn't be generated in LuaError::LuaError anyway and this caused a second, empty traceback in most cases. In cases where there wasn't annother traceback the stack had already unwound and the traceback was empty.
* Make sure we get a stacktrace for as many lua errors as possibleSfan52014-03-15
|
* Log guilty node name when allow_metadata_inventory_move/put/take failsKahrl2013-12-18
|
* Handle LuaErrors in Lua -> C++ calls on LuaJITShadowNinja2013-12-18
|
* Pass a errfunc to lua_pcall to get a tracebackShadowNinja2013-11-15
|
* Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl2013-08-14
|
* Move scriptapi to separate folder (by sapier)sapier2013-05-25
On the lua side, notably minetest.env:<function>(<args>) should now be replaced by minetest.<function>(<args>). The old way is and will stay supported for a long time. Also: Update and clean up lua_api.txt (by celeron55) Move EnvRef to lua and remove add_rat and add_firefly (by kahrl) Add separate src/util/CMakeLists.txt, other minor fixes (by kahrl)
hl kwd">register_privilege("privs", "Can modify privileges") core.register_privilege("teleport", { description = "Can teleport self", give_to_singleplayer = false, }) core.register_privilege("bring", { description = "Can teleport other players", give_to_singleplayer = false, }) core.register_privilege("settime", { description = "Can set the time of day using /time", give_to_singleplayer = false, }) core.register_privilege("server", { description = "Can do server maintenance stuff", give_to_singleplayer = false, give_to_admin = true, }) core.register_privilege("protection_bypass", { description = "Can bypass node protection in the world", give_to_singleplayer = false, }) core.register_privilege("ban", { description = "Can ban and unban players", give_to_singleplayer = false, give_to_admin = true, }) core.register_privilege("kick", { description = "Can kick players", give_to_singleplayer = false, give_to_admin = true, }) core.register_privilege("give", { description = "Can use /give and /giveme", give_to_singleplayer = false, }) core.register_privilege("password", { description = "Can use /setpassword and /clearpassword", give_to_singleplayer = false, give_to_admin = true, }) core.register_privilege("fly", { description = "Can use fly mode", give_to_singleplayer = false, }) core.register_privilege("fast", { description = "Can use fast mode", give_to_singleplayer = false, }) core.register_privilege("noclip", { description = "Can fly through solid nodes using noclip mode", give_to_singleplayer = false, }) core.register_privilege("rollback", { description = "Can use the rollback functionality", give_to_singleplayer = false, }) core.register_privilege("debug", { description = "Allows enabling various debug options that may affect gameplay", give_to_singleplayer = false, give_to_admin = true, }) core.register_can_bypass_userlimit(function(name, ip) local privs = core.get_player_privs(name) return privs["server"] or privs["ban"] or privs["privs"] or privs["password"] end)