summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Refactored cWebPlugin for C++11 style and proper WebTab clearing.Mattes D2015-04-191-32/+16
|
* Split the plugin names and plugin folders to avoid confusing them.Mattes D2015-04-191-1/+18
| | | | Ref.: http://forum.mc-server.org/showthread.php?tid=1877
* Fixed plugin hook calls when unloading plugins.Mattes D2015-04-101-1/+248
| | | | If a plugin installs any hooks in its Initialize method and then causes the Lua runtime to abort, the server asserted because the hooks were called while the plugin was being unloaded.
* cPluginLua:cResettable no longer shares CS with plugin.Mattes D2015-03-201-7/+11
| | | | 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-16/+61
| | | | | 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-4/+4
|
* Fixes #493 and #490flx52015-03-111-4/+4
|
* Added OnTeleportEntity hook for plugins.joshi072015-03-051-0/+21
| | | | | 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-4/+14
| | | | 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.
* En masse NULL -> nullptr replaceTiger Wang2014-10-231-7/+7
|
* Functions in cPluginManager get references instead of pointers.Mattes D2014-10-151-41/+41
|
* Removed a few unnessicary includesTycho2014-09-261-1/+3
|
* Fixed cPlugin::OnPlayerMoving signature.Mattes D2014-08-221-1/+1
|
* Fixed a compile-time warning in MSVC.Mattes D2014-08-211-1/+1
|
* Merge pull request #1339 from mc-server/HooksSTRWarrior2014-08-201-0/+21
|\ | | | | Added HOOK_SERVER_PING
| * Renamed a_Motd to a_ServerDescription.Howaner2014-08-201-2/+2
| |
| * Added a_ClientHandle to the HOOK_SERVER_PING hook.Howaner2014-08-201-2/+3
| |
| * Added HOOK_SERVER_PINGHowaner2014-08-201-2/+2
| |
| * First implementation of HOOK_SERVER_PING.Howaner2014-08-161-0/+20
| |
* | Better OnPlayerMoving hook.Howaner2014-08-161-2/+2
|/
* Style: Normalized to no spaces before closing parenthesis.madmaxoft2014-07-211-1/+1
|
* Basic style fixes.madmaxoft2014-07-171-7/+7
|
* Normalized comments.madmaxoft2014-07-171-2/+2
| | | | | This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
* Merge branch 'master' into potionsmadmaxoft2014-07-171-2/+2
|\
| * Merge pull request #1193 from mc-server/deathmessagesMattes D2014-07-171-2/+2
| |\ | | | | | | Death messages
| | * Resolved backwards compatibility issuesTiger Wang2014-07-161-2/+2
| | |
| | * Tailored death messagesTiger Wang2014-07-041-2/+2
| | |
* | | For now, removed creator member from Entity Effect for pointer safetyarchshift2014-07-121-2/+2
| | |
* | | Merge remote-tracking branch 'origin/master' into potionsarchshift2014-07-101-5/+23
|\| | | | | | | | | | | | | | | | | Conflicts: src/Entities/Player.cpp src/Entities/ProjectileEntity.cpp
| * | Changed OnWeatherChanging hook to always read the returned weather.madmaxoft2014-07-031-4/+1
| |/ | | | | | | Ref.: http://forum.mc-server.org/showthread.php?tid=1512
| * Merge pull request #1139 from Howaner/HooksMattes D2014-07-021-0/+20
| |\ | | | | | | Add hook HOOK_PLAYER_FOOD_LEVEL_CHANGE
| | * Removed foodlevel-change possibility. Plugins can cancel the event and use cPlayer:SetFoodLevel()Howaner2014-07-021-2/+2
| | |
| | * Fixes.Howaner2014-06-301-1/+1
| | |
| | * Add new hook: HOOK_PLAYER_FOOD_LEVEL_CHANGEHowaner2014-06-301-0/+20
| | |
| * | Fixed a possibly unused variable.madmaxoft2014-07-011-1/+1
| |/
| * Nullify deleted pointers.archshift2014-06-191-0/+1
| |
* | Added the OnEntityAddEffect hook.madmaxoft2014-06-171-0/+21
|/
* Fixed OnProjectileHitBlock bindings.madmaxoft2014-06-031-1/+1
| | | | Also sorted the various cLuaState::Push() functions.
* Merge pull request #844 from mc-server/ProjectileHitBlockMattes D2014-06-011-2/+2
|\ | | | | OnProjectileHitBlock tweak.
| * Made a_BlockHitPos a referenceSTRWarrior2014-06-011-2/+2
| |
| * Used recommendationsSTRWarrior2014-05-311-2/+2
| |
| * Using recommendations (I think)STRWarrior2014-03-301-1/+1
| |
| * Added a BlockHitPos parameter to OnProjectileHitBlockSTRWarrior2014-03-301-2/+2
| |
| * Added a blockface parameter to the OnProjectileHitBlock hook.STRWarrior2014-03-301-2/+2
| |
* | HOOK_DISCONNECT has cClientHandle as its first parameter.madmaxoft2014-05-021-2/+2
| | | | | | | | Ref.: #655.
* | Fixed OnPluginMessage hook not exiting early.Tycho2014-04-271-1/+1
| | | | | | | | | | OnPluginMessage hook would call all plugins even after one returned true. Fixes CID 43512
* | Merge branch 'MacFixes'Tycho2014-04-021-0/+5
|\ \ | |/ |/| | | | | | | Conflicts: src/DeadlockDetect.cpp src/World.cpp
| * More fixes to get it to compile for me on Mac 10.9. Mostly just newline additions, but some of the unused variables were causing errors, so I wrapped them in #ifndef __APPLE__ calls, since I didn't know if they were going to be used in the future.Samuel Barney2014-03-251-0/+5
| | | | | | | | Also had to undefine TOLUA_TEMPLATE_BIND a couple of times.
* | Added HOOK_PROJECTILE_HIT_BLOCK.STRWarrior2014-03-291-0/+20
| |
* | Added HOOK_PROJECTILE_HIT_ENTITYSTRWarrior2014-03-291-0/+20
| |
* | Add SpreadSourceHowaner2014-03-271-2/+2
| |
* | Add HOOK_BLOCK_SPREADHowaner2014-03-271-0/+21
|/
* Moved Lua API registering into a separate function.madmaxoft2014-03-121-0/+1
| | | | This will allow us to use Lua as lite-config files as well, should we want to.
* Add Lua plugin path to package.path and .cpath.madmaxoft2014-02-171-0/+8
| | | | Fixes #693.
* Merge pull request #585 from daniel0916/hooksMattes D2014-02-011-0/+20
|\ | | | | Added "player destroying" and "player destroyed" hooks
| * Removed "player destroying" hookdaniel09162014-02-011-20/+0
| |
| * Added "player destroying" and "player destroyed" hooksdaniel09162014-01-251-0/+40
| | | | | | | | | | | | | | | | Hooks: HOOK_PLAYER_DESTROYING HOOK_PLAYER_DESTROYED Idea from: https://github.com/mc-server/MCServer/issues/473
* | Plugin files are loaded in alphabetical order.madmaxoft2014-01-291-17/+35
| | | | | | | | Except for the Info.lua file which gets loaded always last. Implements #597.
* | Implemented cPluginManager:CallPlugin() API.madmaxoft2014-01-211-0/+34
|/ | | | 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.
* cCreeper is no longer available in API.madmaxoft2014-01-131-1/+1
| | | | Has been replaced by cMonster.
* A couple touchupsBill Derouin2014-01-081-2/+3
|
* Add missing plugin errorBill Derouin2014-01-071-0/+12
| | | | | | | | | | | Previously, if a plugin was included but the folder had no lua files, the error given was ambiguous. Now, it explicitly describes lack of lua files. See issue #512 P.S. This probably isn't the best way, but this is where the fix can be made.
* Plugin messages are received and handed to plugins.madmaxoft2014-01-071-1/+32
| | | | 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-4/+4
|
* Implented OnPlayerFishing and OnPlayerFished.STRWarrior2013-12-301-0/+40
|
* Added HOOK_PLUGINS_LOADED.madmaxoft2013-12-291-0/+18
| | | | This fixes #482.
* Replaced esCreeper with esMonster.madmaxoft2013-12-231-1/+1
| | | | Any monster will be able to explode, and also this fixes #425.
* Renamed back EntityAnimation to PlayerAnimationTiger Wang2013-12-181-4/+4
| | | | | This fixes #411 and partially reverts 30ead790490f04248b861db79fddde9148b552f4
* Added a HOOK_WORLD_STARTED hook and a cRoot::CreateAndInitializeWorld function for plugins.STRWarrior2013-12-111-0/+15
|
* Fixed tolua++ compilation.madmaxoft2013-12-081-1/+1
| | | | Duplicate files, wrong includes, const-incorrect code...
* Merge branch 'master' of https://github.com/mc-server/MCServer into fixesnfeaturesTiger Wang2013-12-081-4/+4
| | | | | | | Conflicts: src/Bindings/Bindings.cpp src/Bindings/Bindings.h src/Blocks/BlockHandler.cpp
* Moved bindings-related to a Bindings subfolder.madmaxoft2013-12-081-0/+1471
Ref.: #407