aboutsummaryrefslogtreecommitdiff
path: root/src/script/cpp_api/s_player.cpp
AgeCommit message (Collapse)Author
2019-02-10Consistent HP and damage types (#8167)SmallJoker
Remove deprecated HUDs and chat message handling. Remove unused m_damage variable (compat break). HP: s32 for setter/calculations, u16 for getter.
2019-01-06Fix wrong code comment (#8061)DS
"Get core.registered_on_chat_messages" to "Get core.registered_on_player_receive_fields" where `core.registered_on_player_receive_fields` is gotten
2018-06-30Modernize lua read (part 2 & 3): C++ templating assurance (#7410)Loïc Blot
* Modernize lua read (part 2 & 3): C++ templating assurance Implement the boolean reader Implement the string reader Also remove unused & unimplemented script_error_handler Add a reader with default value
2018-04-02Run callback in IDropAction, refactor function argumentsSmallJoker
2018-04-02Add player inventory callbacksSmallJoker
2018-03-28Add reasons to on_dieplayer and on_hpchangeAndrew Ward
2018-02-15Add `on_auth_fail` callback (#7039)red-001
Called when a client fails to supply the correct password for the account it's attempting to login as.
2018-01-03Fix crash on can_bypass_userlimit returning non-booleanrubenwardy
2017-09-04Implement minetest.register_can_bypass_userlimit (#6369)Loïc Blot
* Implement minetest.register_on_userlimit_check This new callback permits to bypass the max_users parameter with new mods condition, based on player name or IP Only one mod needs to permit it. Move core part for builtin privileges checks to builtin
2017-08-20Modernize source code: last part (#6285)Loïc Blot
* Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes
2016-06-11Server: Add reason for leave to `on_leaveplayer` callbacksDiego Martinez
2015-08-27Push error handler afresh each time lua_pcall is usedKahrl
Fixes "double fault" / "error in error handling" messages (issue #1423) and instead shows a complete backtrace.
2015-08-12SAPI: Track last executed mod and include in error messageskwolekr
2015-08-05Improve Script CPP API diagnosticskwolekr
2015-06-13Add minetest.register_on_player_hpchangeTeTpaAka
2015-05-19Replace instances of std::map<std::string, std::string> with StringMapkwolekr
Also, clean up surrounding code style Replace by-value parameter passing with const refs when possible Fix post-increment of iterators
2015-05-15Add minetest.register_on_punchplayerBrandon
2014-10-07Fix object reference pushing functions when called from coroutinesShadowNinja
2014-05-08Use "core" namespace internallyShadowNinja
2013-12-12Add 'on_prejoinplayer' callbackkaeza
2013-08-14Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenuKahrl
2013-08-04Allow mods to listen to cheat detections using minetest.register_on_cheat()Perttu Ahola
2013-05-25Move scriptapi to separate folder (by sapier)sapier
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)