summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Lua callback"Mattes D2016-03-211-31/+55
|
* Removed the cPluginLua::cResettable class.Mattes D2016-03-171-37/+1
| | | | The functionality provided by that class has been superseded by cLuaState::cCallback, with better multithreading support.
* Changed plugin hook registrations to use cLuaState::cCallback.Mattes D2016-03-171-7/+26
|
* Removed cWebPlugin, WebAdmin uses cLuaState::cCallback.Mattes D2016-03-171-11/+4
|
* Bulk clearing of whitespaceLogicParrot2016-02-051-23/+23
|
* Implemented brewingLukas Pioch2015-11-031-0/+2
|
* Namechange to CuberiteMattes D2015-09-251-2/+2
|
* Silenced and fixed many warning messages across multiple files.Samuel Barney2015-07-291-1/+1
|
* Added HOOK_KILLEDNounours Heureux2015-06-131-0/+1
|
* Fixed missing overrides and added a ignore flag for reserved macro for clang version 3.6 and higher.Lukas Pioch2015-05-231-1/+1
|
* Renamed hook HOOK_ENTITY_CHANGE_WORLDLukas Pioch2015-05-211-1/+1
|
* Added hooks HOOK_ENTITY_CHANGE_WORLD and HOOK_ENTITY_CHANGED_WORLDLukas Pioch2015-05-181-0/+2
| | | | Fixes #1435.
* OnExecuteCommand hook can override the command result (crXXX).Mattes D2015-05-101-1/+1
|
* Added the EntireCommand parameter to HOOK_EXECUTE_COMMAND.Mattes D2015-05-101-1/+1
| | | | Fixes #1996.
* More style checking.Mattes D2015-05-091-1/+1
| | | | Spaces around some operators are checked.
* Refactored cWebPlugin for C++11 style and proper WebTab clearing.Mattes D2015-04-191-4/+5
|
* Split the plugin names and plugin folders to avoid confusing them.Mattes D2015-04-191-1/+4
| | | | Ref.: http://forum.mc-server.org/showthread.php?tid=1877
* cPluginLua:cResettable no longer shares CS with plugin.Mattes D2015-03-201-3/+2
| | | | This fixes locking the resettable while the plugin is already gone. Hopefully no deadlocks.
* Added cPluginLua::cResettable interface, used for scheduled tasks.Mattes D2015-03-201-33/+51
| | | | | This allows plugins to register objects that can "survive" the plugin unloading - they will simply bail out if the plugin is already unloaded, instead of referencing bad plugin data. Fixes #1556.
* Fixed coding conventions for Pull Request #1807flx52015-03-111-2/+2
|
* Fixes #493 and #490flx52015-03-111-2/+2
|
* Added OnTeleportEntity hook for plugins.joshi072015-03-051-0/+1
| | | | | Plugins may or may not allow teleport to the new position. Updated the HookNotify plugin with it.
* Initial convertion of a_Dt to std::chronoTycho2015-01-111-1/+1
| | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay
* Refactored all player block placing to go through hooks.Mattes D2014-12-241-2/+2
| | | | Fixes #1618.
* Fixed the CRAFTING_NO_RECIPE hook call.Mattes D2014-12-041-1/+1
| | | | | It used a pointer-to-pointer-to-cCraftingRecipe, which the Lua bindings didn't know how to handle, and emitted a warning message at runtime. Fixes #1641.
* Functions in cPluginManager get references instead of pointers.Mattes D2014-10-151-17/+17
|
* Fixed cPlugin::OnPlayerMoving signature.Mattes D2014-08-221-1/+1
|
* Merge pull request #1339 from mc-server/HooksSTRWarrior2014-08-201-0/+1
|\ | | | | Added HOOK_SERVER_PING
| * Renamed a_Motd to a_ServerDescription.Howaner2014-08-201-1/+1
| |
| * Added a_ClientHandle to the HOOK_SERVER_PING hook.Howaner2014-08-201-1/+1
| |
| * Added HOOK_SERVER_PINGHowaner2014-08-201-1/+1
| |
| * First implementation of HOOK_SERVER_PING.Howaner2014-08-161-0/+1
| |
* | Better OnPlayerMoving hook.Howaner2014-08-161-1/+1
|/
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-1/+1
|
* Basic style fixes.madmaxoft2014-07-171-1/+1
|
* Merge branch 'master' into potionsmadmaxoft2014-07-171-1/+1
|\
| * Resolved backwards compatibility issuesTiger Wang2014-07-161-1/+1
| |
| * Tailored death messagesTiger Wang2014-07-041-1/+1
| |
* | For now, removed creator member from Entity Effect for pointer safetyarchshift2014-07-121-1/+1
| |
* | Merge remote-tracking branch 'origin/master' into potionsarchshift2014-07-101-0/+1
|\| | | | | | | | | | | Conflicts: src/Entities/Player.cpp src/Entities/ProjectileEntity.cpp
| * Removed foodlevel-change possibility. Plugins can cancel the event and use cPlayer:SetFoodLevel()Howaner2014-07-021-1/+1
| |
| * Add new hook: HOOK_PLAYER_FOOD_LEVEL_CHANGEHowaner2014-06-301-0/+1
| |
* | Added the OnEntityAddEffect hook.madmaxoft2014-06-171-0/+1
|/
* Merge pull request #844 from mc-server/ProjectileHitBlockMattes D2014-06-011-1/+1
|\ | | | | OnProjectileHitBlock tweak.
| * Made a_BlockHitPos a referenceSTRWarrior2014-06-011-1/+1
| |
| * Used recommendationsSTRWarrior2014-05-311-1/+1
| |
| * Using recommendations (I think)STRWarrior2014-03-301-1/+1
| |
| * Added a BlockHitPos parameter to OnProjectileHitBlockSTRWarrior2014-03-301-1/+1
| |
| * Added a blockface parameter to the OnProjectileHitBlock hook.STRWarrior2014-03-301-1/+1
| |
* | HOOK_DISCONNECT has cClientHandle as its first parameter.madmaxoft2014-05-021-1/+1
|/ | | | Ref.: #655.
* Added HOOK_PROJECTILE_HIT_BLOCK.STRWarrior2014-03-291-0/+1
|
* Added HOOK_PROJECTILE_HIT_ENTITYSTRWarrior2014-03-291-0/+1
|
* Add SpreadSourceHowaner2014-03-271-1/+1
|
* Add HOOK_BLOCK_SPREADHowaner2014-03-271-0/+1
|
* Added cPluginLua::cOperation.madmaxoft2014-02-101-1/+27
| | | | This class should be used to lock-and-access the plugin's LuaState. cPluginLua::GetLuaState() is unsafe and by this commit obsolete.
* Merge pull request #585 from daniel0916/hooksMattes D2014-02-011-0/+1
|\ | | | | Added "player destroying" and "player destroyed" hooks
| * Removed "player destroying" hookdaniel09162014-02-011-1/+0
| |
| * Added "player destroying" and "player destroyed" hooksdaniel09162014-01-251-0/+2
| | | | | | | | | | | | | | | | Hooks: HOOK_PLAYER_DESTROYING HOOK_PLAYER_DESTROYED Idea from: https://github.com/mc-server/MCServer/issues/473
* | Implemented cPluginManager:CallPlugin() API.madmaxoft2014-01-211-16/+26
|/ | | | This function supersedes cPlugin:Call(), is safer to use in regards to multithreading and once again removes the need for the cPlugin class being exported at all.
* Plugin messages are received and handed to plugins.madmaxoft2014-01-071-0/+1
| | | | Note that MCS doesn't currently handle any channel registrations, this will come later on.
* OnPlayerFishing doesn't have a const cItems anymoreSTRWarrior2014-01-011-1/+1
|
* implemented the recommendations Xoft gave.STRWarrior2013-12-311-2/+2
|
* Implented OnPlayerFishing and OnPlayerFished.STRWarrior2013-12-301-0/+2
|
* Added HOOK_PLUGINS_LOADED.madmaxoft2013-12-291-0/+1
| | | | This fixes #482.
* Renamed back EntityAnimation to PlayerAnimationTiger Wang2013-12-181-1/+1
| | | | | This fixes #411 and partially reverts 30ead790490f04248b861db79fddde9148b552f4
* Added a HOOK_WORLD_STARTED hook and a cRoot::CreateAndInitializeWorld function for plugins.STRWarrior2013-12-111-0/+1
|
* Merge branch 'master' of https://github.com/mc-server/MCServer into fixesnfeaturesTiger Wang2013-12-081-1/+1
| | | | | | | Conflicts: src/Bindings/Bindings.cpp src/Bindings/Bindings.h src/Blocks/BlockHandler.cpp
* Moved bindings-related to a Bindings subfolder.madmaxoft2013-12-081-0/+202
Ref.: #407