summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginLua.cpp (unfollow)
Commit message (Expand)AuthorFilesLines
2014-08-20Added a_ClientHandle to the HOOK_SERVER_PING hook.Howaner1-2/+3
2014-08-20Added HOOK_SERVER_PINGHowaner1-2/+2
2014-08-16First implementation of HOOK_SERVER_PING.Howaner1-0/+20
2014-07-21Style: Normalized to no spaces before closing parenthesis.madmaxoft1-1/+1
2014-07-17Basic style fixes.madmaxoft1-7/+7
2014-07-17Normalized comments.madmaxoft1-2/+2
2014-07-16Resolved backwards compatibility issuesTiger Wang1-2/+2
2014-07-12For now, removed creator member from Entity Effect for pointer safetyarchshift1-2/+2
2014-07-04Tailored death messagesTiger Wang1-2/+2
2014-07-03Changed OnWeatherChanging hook to always read the returned weather.madmaxoft1-4/+1
2014-07-02Removed foodlevel-change possibility. Plugins can cancel the event and use cPlayer:SetFoodLevel()Howaner1-2/+2
2014-07-01Fixed a possibly unused variable.madmaxoft1-1/+1
2014-06-30Fixes.Howaner1-1/+1
2014-06-30Add new hook: HOOK_PLAYER_FOOD_LEVEL_CHANGEHowaner1-0/+20
2014-06-19Nullify deleted pointers.archshift1-0/+1
2014-06-17Added the OnEntityAddEffect hook.madmaxoft1-0/+21
2014-06-03Fixed OnProjectileHitBlock bindings.madmaxoft1-1/+1
2014-06-01Made a_BlockHitPos a referenceSTRWarrior1-2/+2
2014-05-31Used recommendationsSTRWarrior1-2/+2
2014-05-02HOOK_DISCONNECT has cClientHandle as its first parameter.madmaxoft1-2/+2
2014-04-27Fixed OnPluginMessage hook not exiting early.Tycho1-1/+1
2014-03-30Using recommendations (I think)STRWarrior1-1/+1
2014-03-30Added a BlockHitPos parameter to OnProjectileHitBlockSTRWarrior1-2/+2
2014-03-30Added a blockface parameter to the OnProjectileHitBlock hook.STRWarrior1-2/+2
2014-03-29Added HOOK_PROJECTILE_HIT_BLOCK.STRWarrior1-0/+20
2014-03-29Added HOOK_PROJECTILE_HIT_ENTITYSTRWarrior1-0/+20
2014-03-27Add SpreadSourceHowaner1-2/+2
2014-03-27Add HOOK_BLOCK_SPREADHowaner1-0/+21
2014-03-25More 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 Barney1-0/+5
2014-03-12Moved Lua API registering into a separate function.madmaxoft1-0/+1
2014-02-17Add Lua plugin path to package.path and .cpath.madmaxoft1-0/+8
2014-02-01Removed "player destroying" hookdaniel09161-20/+0
2014-01-29Plugin files are loaded in alphabetical order.madmaxoft1-17/+35
2014-01-25Added "player destroying" and "player destroyed" hooksdaniel09161-0/+40
2014-01-21Implemented cPluginManager:CallPlugin() API.madmaxoft1-0/+34
2014-01-13cCreeper is no longer available in API.madmaxoft1-1/+1
2014-01-08A couple touchupsBill Derouin1-2/+3
2014-01-07Add missing plugin errorBill Derouin1-0/+12
2014-01-07Plugin messages are received and handed to plugins.madmaxoft1-1/+32
2014-01-01OnPlayerFishing doesn't have a const cItems anymoreSTRWarrior1-1/+1
2013-12-31implemented the recommendations Xoft gave.STRWarrior1-4/+4
2013-12-30Implented OnPlayerFishing and OnPlayerFished.STRWarrior1-0/+40
2013-12-23Replaced esCreeper with esMonster.madmaxoft1-1/+1
2013-12-29Added HOOK_PLUGINS_LOADED.madmaxoft1-0/+18
2013-12-18Renamed back EntityAnimation to PlayerAnimationTiger Wang1-4/+4
2013-12-11Added a HOOK_WORLD_STARTED hook and a cRoot::CreateAndInitializeWorld function for plugins.STRWarrior1-0/+15
2013-12-08Fixed tolua++ compilation.madmaxoft1-1/+1
2013-12-08Moved bindings-related to a Bindings subfolder.madmaxoft1-1/+1
2013-12-07Renamed animation functionTiger Wang1-4/+4
2013-11-30Added the real tick duration to the OnWorldTick hook.madmaxoft1-2/+2
2013-11-27Fixed the remaining derpsAlexander Harkness1-1/+1
2013-11-24Attempt to fix compilationTiger Wang1-1/+1
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-22Added cFile:GetFolderContents().madmaxoft1-3/+3
2013-09-18Added a global "g_Plugin" object to all Lua plugins.madmaxoft1-0/+3
2013-08-22Fixed AddHook() wanting old-style function names.madmaxoft1-10/+20
2013-08-21Hook adding uses the new API.madmaxoft1-143/+551
2013-08-20Fixed a warning on closing invalid plugins.madmaxoft1-1/+4
2013-08-19Finished renaming cPlugin_NewLua to cPluginLua.madmaxoft1-67/+67
2013-08-19Implemented the OnWorldTick hook.madmaxoft1-0/+12
2013-08-11Added the OnHopperPullingItem and OnHopperPushingItem hooks.madmaxoft1-0/+24
2013-08-11Added OnPlayerAnimation() hook.madmaxoft1-0/+13
2013-08-10Renamed Plugin_NewLua to PluginLua.madmaxoft1-1/+5
2013-08-09Renamed Plugin_NewLua to PluginLua.madmaxoft1-994/+0
2013-08-09Added OnExploding() and OnExploded() hooks.madmaxoft1-0/+60
2013-08-08Fixed a copypasta error in hook function names.madmaxoft1-1/+1
2013-08-08cPlugin_NewLua is now completely rewritten to use templated LuaState calls.madmaxoft1-281/+33
2013-08-08LuaState refactoring: using templates for hook function calls.madmaxoft1-745/+166
2013-08-08Addeed OnSpawningEntity, OnSpawnedEntity, OnSpawningMonster, OnSpawnedMonster hooks.madmaxoft1-0/+115
2013-08-07Plugin: Fixed plugin name in the cLuaState's subsystemmadmaxoft1-1/+1
2013-08-06cLuaState now tracks the function name and number of argsmadmaxoft1-267/+231
2013-08-04LuaState refactoring: initial part.madmaxoft1-232/+118
2013-08-02Implemented OnPlayerRightClickingEntity() hookmadmaxoft1-38/+66
2013-07-29WebAdmin templates can use LuaFakeTruth1-2/+2
2013-07-01Rewritten entity-on-fire management ("forever on fire" bugs)madmaxoft@gmail.com1-4/+4
2013-06-29Advanced RCON: Command output is sent to the RCON client.madmaxoft@gmail.com1-7/+14
2013-06-22Plugins can modify message in the OnChat() hook handler.madmaxoft@gmail.com1-4/+8
2013-06-02LuaWindow: Fixed memory leaks with unclosed windowsmadmaxoft@gmail.com1-2/+3
2013-05-31Added cLuaWindow:SetOnSlotChanged(); the callback is called only for non-inventory slotsmadmaxoft@gmail.com1-0/+23
2013-05-30Added the OnClosing callback to cLuaWindow APImadmaxoft@gmail.com1-0/+24
2013-05-30LuaWindow: Initial code, the window can be opened, but not much manipulatedmadmaxoft@gmail.com1-0/+10
2013-05-25Added all new bindings, refactored Debuggers; new Debuggers function.madmaxoft@gmail.com1-1/+1
2013-04-09Added Expat and LuaExpat, XML parsing now available in the API.madmaxoft1-0/+7
2013-04-07Added SQLite and LuaSQLite, Lua plugins can now use SQLite.madmaxoft@gmail.com1-0/+11
2013-02-21Added HOOK_EXECUTE_COMMAND for intercepting executed commands and console commands.madmaxoft@gmail.com1-12/+44
2013-02-15Plugins can now bind console commandsmadmaxoft@gmail.com1-1/+82
2013-02-13Added HOOK_WEATHER_CHANGING.madmaxoft@gmail.com1-2/+34
2013-02-05Added new hooks: OnChunkAvailable(), OnChunkUnloaded() and OnChunkUnloading(). Modified OnChunkGenerated() signature.madmaxoft@gmail.com1-2/+90
2013-02-01Moved command API into cPluginManager.madmaxoft@gmail.com1-5/+112
2013-01-28Renamed HOOK_KILLED to HOOK_KILLING to match naming conventions.madmaxoft@gmail.com1-12/+9
2013-01-28Renamed HOOK_COLLECT_PICKUP to HOOK_COLLECTING_PICKUP to match other hooks' naming.madmaxoft@gmail.com1-3/+3
2013-01-27Added cItems to Lua API.madmaxoft@gmail.com1-1/+0
2013-01-27Added the HOOK_BLOCK_TO_PICKUPS hook that fires when a block is dug up and should be converted to pickups.madmaxoft@gmail.com1-0/+34
2013-01-26Changed HOOK_PLAYER_MOVED to HOOK_PLAYER_MOVING to match the scheme used for names.madmaxoft@gmail.com1-2/+2
2013-01-25Merged the usable portion of the "gens" branch.madmaxoft@gmail.com1-2/+2
2013-01-18Renamed rclk hook to HOOK_PLAYER_RIGHT_CLICK.madmaxoft@gmail.com1-2/+2
2013-01-12Merged branch "branches/hooks" into "trunk".madmaxoft@gmail.com1-168/+674
2012-12-21Refactored the TakeDamage API to take equipped weapon and armor into consideration (PvP untested)madmaxoft@gmail.com1-7/+16
2012-11-11Cleanup: Removed deprecated functions from Lua APImadmaxoft@gmail.com1-12/+0
2012-10-14Completely removed support for old style Lua plugins (can use both Plugin and NewPlugin in settings.ini for now)faketruth1-17/+8
2012-10-11Got rid of "self" in plugins, which is deprecated anywayfaketruth1-5/+28
2012-09-24Source files cleanup: The rest of the files renamed.madmaxoft@gmail.com1-2/+2
2012-09-08GetLocalDirectory should not include FILE_IO_PREFIX since that is already included in cIniFilefaketruth1-2/+2
2012-09-08Added cPlugin_NewLua::GetLocalDirectory() and exported it to Lua so plugins can store their settings in their own folder.faketruth1-1/+10
2012-09-05Added the possibility of reserved player slots by implementing the HandleHandshake hook!faketruth1-0/+24
2012-09-01Added a Player parameter to OnUpdatedSign and OnUpdatingSign Lua callbacks and to the cWorld:UpdateSign method (http://forum.mc-server.org/showthread.php?tid=464&pid=4393#pid4393)madmaxoft@gmail.com1-4/+8
2012-08-24cPickup doesn't use cPackets.madmaxoft@gmail.com1-7/+10
2012-08-23Added plugin name to deprecation messagesmadmaxoft@gmail.com1-2/+4
2012-08-22WebAdmin should not cause crashes anymorefaketruth1-12/+82
2012-08-19Almost all packets' handling is now rewritten not to use cPacket descendants elsewhere than in cClientHandle.madmaxoft@gmail.com1-7/+10
2012-08-18Chat packet handled in the new way; fixed missing packet sending for inventory slot.madmaxoft@gmail.com1-7/+10
2012-08-18Packet refactoring, phase two, partial. Rewritten a few packet handling functions not to use cPacket-descendant objects.madmaxoft@gmail.com1-18/+35
2012-08-18Android: Pressing back button sends stop command to serverfaketruth1-1/+1
2012-06-16Added new hooks: UPDATING_SIGN and UPDATED_SIGN. The first one is capable of changing the sign text by returning the new four lines along with the bool valuemadmaxoft@gmail.com1-0/+84
2012-06-14Renamed HOOK_WEATHER_CHANGE to HOOK_WEATHER_CHANGED, added the glue code for it to actually workmadmaxoft@gmail.com1-0/+23
2012-06-14Added a world parameter to HOOK_CHUNK_GENERATING.madmaxoft@gmail.com1-1/+2
2012-06-14Attempt to bring sanity to newlines across systems.cedeel@gmail.com1-550/+550
2012-06-13Added a BlockToPickup hook for modifying pickups when a player breaks a block.madmaxoft@gmail.com1-1/+55
2012-06-12Added working crafting hooks HOOK_PRE_CRAFTING, HOOK_CRAFTING_NO_RECIPE and HOOK_POST_CRAFTINGmadmaxoft@gmail.com1-0/+69
2012-06-11Added implementation of E_PLUGIN_CHUNK_GENERATING lua hookfaketruth1-0/+21
2012-06-05New hook, E_PLUGIN_CHUNK_GENERATED, called after each chunk is generated (the chunk is already present in cWorld)madmaxoft@gmail.com1-0/+66
2012-03-25A globally-accessible OS-independent GetDirectoryContents() function for listing all objects in a folder as an AStringListmadmaxoft@gmail.com1-30/+23
2012-02-22Added a CriticalSection to cPlugin_NewLua. Lua plugins are not threadsafe but they ARE accessed by multiple threads, this can create some hard to find errors, but I fixed it now :Pfaketruth1-0/+16
2012-02-01Added all current hooks to the new plugin structure.faketruth1-9/+113
2012-01-29VC2008 / VC2010: Enabled precompiled header through Globals.h; the header included in every module in the project. Compilation optimization.madmaxoft@gmail.com1-0/+3
2012-01-28Converted entire Core plugin including WebAdmin interface to new plugin method/system/thingy and sexyfied it.faketruth1-7/+27
2012-01-27Converted all of the Core plugin to the new plugin structure, except for the WebAdmin partfaketruth1-16/+86
2012-01-26No longer hard coded Lua files in new plugin systemfaketruth1-20/+34
2012-01-26Working on a new plugin design with Lua. While retaining backwards compatibility of course...faketruth1-0/+121