Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | TNT minecarts exploding when riding over activator rails (#5469) | Michal Havlíček | 2023-01-25 | 1 | -0/+4 |
| | | | | | | | * TNT Minecarts exploding via activator rails * Fuse animation * Add TNT minecart explosion source to APIDesc | ||||
* | eblockface | Tiger Wang | 2022-01-14 | 1 | -8/+8 |
| | |||||
* | Added ExperienceAmount variable to HOOK_PLAYER_FISHING and HOOK_PLAYER_FISHED (#5345) | Feyo Korenhof | 2021-11-29 | 1 | -4/+4 |
| | | | | | | | | | | | | | | | * Implemented cServer::ScheduleTask() and cServer::TickQueuedTasks() * Fixed formatting and added ScheduleTask to APIDesc * Added feyokorenhof to contributors * Added ExperienceAmount variable to all the hook calls. * Made ExperienceAmount int reference instead of int in HOOK_PLAYER_FISHING. Fixed bug: a_Reward is now a reference * Add documentation, change ItemFishingRod to pass in experience Co-authored-by: Alexander Harkness <me@bearbin.net> | ||||
* | Remove LUA_PLUGIN_NAME_VAR_NAME | Tiger Wang | 2021-06-28 | 1 | -2/+0 |
| | |||||
* | Compile the entire Lua stack as C++ | Tiger Wang | 2021-06-25 | 1 | -4/+1 |
| | | | | * Fixes #5216 | ||||
* | zlib -> libdeflate (#5085) | Tiger Wang | 2021-01-11 | 1 | -1/+1 |
| | | | | | | + Use libdeflate + Use std::byte * Fix passing temporary to string_view + Emulate make_unique_for_overwrite | ||||
* | Implement Dropspenser Hook (#4903) | KrystilizeNevaDies | 2020-09-21 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement Dropspenser Hook Implemented a hook for dropspensing. HOOK_DROPSPENSE When plugin callback returns true then dropspense is cancelled * Update src/Bindings/PluginManager.h Co-authored-by: peterbell10 <peterbell10@live.co.uk> * Create OnDropSpense.lua * Fix indent * Forgot include Forgot to include the plugin manager. Although now im confused why it was working on my end without including the plugin manager * Update plugins.lua with dropspense * fix typos * haha notepad++ go brr Co-authored-by: peterbell10 <peterbell10@live.co.uk> | ||||
* | Enable some more clang-tidy linter checks (#4738) | peterbell10 | 2020-05-15 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate | ||||
* | Remove old Android leftovers (#4722) | Mat | 2020-05-07 | 1 | -3/+3 |
| | |||||
* | Using Super. | Mattes D | 2020-04-16 | 1 | -1/+1 |
| | |||||
* | Manual merge of #4498. | Alexander Harkness | 2020-03-23 | 1 | -2/+13 |
| | | | | | | Credit to @MeMuXin Closes #4498 | ||||
* | Refactored block-to-pickup conversion. (#4417) | Mattes D | 2019-10-16 | 1 | -2/+17 |
| | |||||
* | Prefer static_cast to reinterpret_cast (#4223) | peterbell10 | 2018-05-02 | 1 | -14/+14 |
| | | | | | | | * Change reinterpret_cast -> static_cast wherever possible * Remove more unnecessary `const_cast`s. reinterpret_casts should be avoided for the same reason as c-style casts - they don't do any type-checking. reinterpret_cast was mainly being used for down-casting in inheritance hierarchies but static_cast works just as well while also making sure that there is actually an inheritance relationship there. | ||||
* | Implement Forge protocol handshake support (#3869) | satoshinm | 2017-08-27 | 1 | -0/+10 |
| | |||||
* | Add cLuaWindow OnClicked Callback (#3901) | Lane Kolbly | 2017-08-17 | 1 | -0/+10 |
| | |||||
* | Changed Lua plugins to only execute files ending in .lua (#3831) | Lane Kolbly | 2017-07-07 | 1 | -1/+2 |
| | |||||
* | Fixed Lua bindings for const objects. | Mattes D | 2017-05-09 | 1 | -1/+2 |
| | |||||
* | DeadlockDetect now lists some tracked CS's stats. | Mattes D | 2017-01-18 | 1 | -2/+5 |
| | |||||
* | PluginLua: Removed unneeded assignment. | Mattes D | 2016-09-05 | 1 | -1/+0 |
| | | | | Duplicated in SetLoadError(). | ||||
* | Converted cLuaState::cCallbackPtr into a UniquePtr. | Mattes D | 2016-06-27 | 1 | -3/+3 |
| | |||||
* | Removed dead code related to callbacks. | Mattes D | 2016-06-27 | 1 | -26/+0 |
| | |||||
* | cPluginManager: Use a callback for command handler registration. | Mattes D | 2016-06-27 | 1 | -108/+1 |
| | |||||
* | LuaState: Implemented proper locking for cCallback. | Mattes D | 2016-06-27 | 1 | -52/+38 |
| | |||||
* | Removed the cPluginLua::cResettable class. | Mattes D | 2016-06-27 | 1 | -45/+0 |
| | | | | 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 D | 2016-06-27 | 1 | -985/+111 |
| | |||||
* | Removed cWebPlugin, WebAdmin uses cLuaState::cCallback. | Mattes D | 2016-06-27 | 1 | -47/+17 |
| | |||||
* | Revert "Lua callback" | Mattes D | 2016-03-21 | 1 | -121/+1070 |
| | |||||
* | Removed the cPluginLua::cResettable class. | Mattes D | 2016-03-17 | 1 | -45/+0 |
| | | | | 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 D | 2016-03-17 | 1 | -985/+111 |
| | |||||
* | Removed cWebPlugin, WebAdmin uses cLuaState::cCallback. | Mattes D | 2016-03-17 | 1 | -47/+17 |
| | |||||
* | Bulk clearing of whitespace | LogicParrot | 2016-02-05 | 1 | -17/+17 |
| | |||||
* | Revised the explosion-related Lua API and docs. | Mattes D | 2015-12-18 | 1 | -20/+28 |
| | | | | Fixes #2746. | ||||
* | Implemented brewing | Lukas Pioch | 2015-11-03 | 1 | -0/+48 |
| | |||||
* | Silenced and fixed many warning messages across multiple files. | Samuel Barney | 2015-07-29 | 1 | -82/+82 |
| | |||||
* | Added HOOK_KILLED | Nounours Heureux | 2015-06-13 | 1 | -0/+24 |
| | |||||
* | Merge branch 'master' into PreventNewWarnings | tycho | 2015-05-23 | 1 | -3/+3 |
|\ | |||||
| * | Renamed hook HOOK_ENTITY_CHANGE_WORLD | Lukas Pioch | 2015-05-21 | 1 | -3/+3 |
| | | |||||
* | | Added LuaState support for all integral types | tycho | 2015-05-19 | 1 | -10/+0 |
|/ | | | | All so added error handling for out of range values | ||||
* | Added hooks HOOK_ENTITY_CHANGE_WORLD and HOOK_ENTITY_CHANGED_WORLD | Lukas Pioch | 2015-05-18 | 1 | -0/+50 |
| | | | | Fixes #1435. | ||||
* | OnExecuteCommand hook can override the command result (crXXX). | Mattes D | 2015-05-10 | 1 | -2/+2 |
| | |||||
* | Added the EntireCommand parameter to HOOK_EXECUTE_COMMAND. | Mattes D | 2015-05-10 | 1 | -2/+2 |
| | | | | Fixes #1996. | ||||
* | Plugin removes its command registrations and webtabs when unloaded. | Mattes D | 2015-04-25 | 1 | -0/+5 |
| | | | | Fixes #1890. | ||||
* | Refactored cWebPlugin for C++11 style and proper WebTab clearing. | Mattes D | 2015-04-19 | 1 | -32/+16 |
| | |||||
* | Split the plugin names and plugin folders to avoid confusing them. | Mattes D | 2015-04-19 | 1 | -1/+18 |
| | | | | Ref.: http://forum.mc-server.org/showthread.php?tid=1877 | ||||
* | Fixed plugin hook calls when unloading plugins. | Mattes D | 2015-04-10 | 1 | -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 D | 2015-03-20 | 1 | -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 D | 2015-03-20 | 1 | -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 #1807 | flx5 | 2015-03-11 | 1 | -4/+4 |
| | |||||
* | Fixes #493 and #490 | flx5 | 2015-03-11 | 1 | -4/+4 |
| | |||||
* | Added OnTeleportEntity hook for plugins. | joshi07 | 2015-03-05 | 1 | -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::chrono | Tycho | 2015-01-11 | 1 | -1/+1 |
| | | | | also refactored cWorld::m_WorldAge and cWorld::m_TimeOfDay | ||||
* | Refactored all player block placing to go through hooks. | Mattes D | 2014-12-24 | 1 | -4/+14 |
| | | | | Fixes #1618. | ||||
* | Fixed the CRAFTING_NO_RECIPE hook call. | Mattes D | 2014-12-04 | 1 | -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 replace | Tiger Wang | 2014-10-23 | 1 | -7/+7 |
| | |||||
* | Functions in cPluginManager get references instead of pointers. | Mattes D | 2014-10-15 | 1 | -41/+41 |
| | |||||
* | Removed a few unnessicary includes | Tycho | 2014-09-26 | 1 | -1/+3 |
| | |||||
* | Fixed cPlugin::OnPlayerMoving signature. | Mattes D | 2014-08-22 | 1 | -1/+1 |
| | |||||
* | Fixed a compile-time warning in MSVC. | Mattes D | 2014-08-21 | 1 | -1/+1 |
| | |||||
* | Merge pull request #1339 from mc-server/Hooks | STRWarrior | 2014-08-20 | 1 | -0/+21 |
|\ | | | | | Added HOOK_SERVER_PING | ||||
| * | Renamed a_Motd to a_ServerDescription. | Howaner | 2014-08-20 | 1 | -2/+2 |
| | | |||||
| * | Added a_ClientHandle to the HOOK_SERVER_PING hook. | Howaner | 2014-08-20 | 1 | -2/+3 |
| | | |||||
| * | Added HOOK_SERVER_PING | Howaner | 2014-08-20 | 1 | -2/+2 |
| | | |||||
| * | First implementation of HOOK_SERVER_PING. | Howaner | 2014-08-16 | 1 | -0/+20 |
| | | |||||
* | | Better OnPlayerMoving hook. | Howaner | 2014-08-16 | 1 | -2/+2 |
|/ | |||||
* | Style: Normalized to no spaces before closing parenthesis. | madmaxoft | 2014-07-21 | 1 | -1/+1 |
| | |||||
* | Basic style fixes. | madmaxoft | 2014-07-17 | 1 | -7/+7 |
| | |||||
* | Normalized comments. | madmaxoft | 2014-07-17 | 1 | -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 potions | madmaxoft | 2014-07-17 | 1 | -2/+2 |
|\ | |||||
| * | Merge pull request #1193 from mc-server/deathmessages | Mattes D | 2014-07-17 | 1 | -2/+2 |
| |\ | | | | | | | Death messages | ||||
| | * | Resolved backwards compatibility issues | Tiger Wang | 2014-07-16 | 1 | -2/+2 |
| | | | |||||
| | * | Tailored death messages | Tiger Wang | 2014-07-04 | 1 | -2/+2 |
| | | | |||||
* | | | For now, removed creator member from Entity Effect for pointer safety | archshift | 2014-07-12 | 1 | -2/+2 |
| | | | |||||
* | | | Merge remote-tracking branch 'origin/master' into potions | archshift | 2014-07-10 | 1 | -5/+23 |
|\| | | | | | | | | | | | | | | | | | Conflicts: src/Entities/Player.cpp src/Entities/ProjectileEntity.cpp | ||||
| * | | Changed OnWeatherChanging hook to always read the returned weather. | madmaxoft | 2014-07-03 | 1 | -4/+1 |
| |/ | | | | | | | Ref.: http://forum.mc-server.org/showthread.php?tid=1512 | ||||
| * | Merge pull request #1139 from Howaner/Hooks | Mattes D | 2014-07-02 | 1 | -0/+20 |
| |\ | | | | | | | Add hook HOOK_PLAYER_FOOD_LEVEL_CHANGE | ||||
| | * | Removed foodlevel-change possibility. Plugins can cancel the event and use cPlayer:SetFoodLevel() | Howaner | 2014-07-02 | 1 | -2/+2 |
| | | | |||||
| | * | Fixes. | Howaner | 2014-06-30 | 1 | -1/+1 |
| | | | |||||
| | * | Add new hook: HOOK_PLAYER_FOOD_LEVEL_CHANGE | Howaner | 2014-06-30 | 1 | -0/+20 |
| | | | |||||
| * | | Fixed a possibly unused variable. | madmaxoft | 2014-07-01 | 1 | -1/+1 |
| |/ | |||||
| * | Nullify deleted pointers. | archshift | 2014-06-19 | 1 | -0/+1 |
| | | |||||
* | | Added the OnEntityAddEffect hook. | madmaxoft | 2014-06-17 | 1 | -0/+21 |
|/ | |||||
* | Fixed OnProjectileHitBlock bindings. | madmaxoft | 2014-06-03 | 1 | -1/+1 |
| | | | | Also sorted the various cLuaState::Push() functions. | ||||
* | Merge pull request #844 from mc-server/ProjectileHitBlock | Mattes D | 2014-06-01 | 1 | -2/+2 |
|\ | | | | | OnProjectileHitBlock tweak. | ||||
| * | Made a_BlockHitPos a reference | STRWarrior | 2014-06-01 | 1 | -2/+2 |
| | | |||||
| * | Used recommendations | STRWarrior | 2014-05-31 | 1 | -2/+2 |
| | | |||||
| * | Using recommendations (I think) | STRWarrior | 2014-03-30 | 1 | -1/+1 |
| | | |||||
| * | Added a BlockHitPos parameter to OnProjectileHitBlock | STRWarrior | 2014-03-30 | 1 | -2/+2 |
| | | |||||
| * | Added a blockface parameter to the OnProjectileHitBlock hook. | STRWarrior | 2014-03-30 | 1 | -2/+2 |
| | | |||||
* | | HOOK_DISCONNECT has cClientHandle as its first parameter. | madmaxoft | 2014-05-02 | 1 | -2/+2 |
| | | | | | | | | Ref.: #655. | ||||
* | | Fixed OnPluginMessage hook not exiting early. | Tycho | 2014-04-27 | 1 | -1/+1 |
| | | | | | | | | | | OnPluginMessage hook would call all plugins even after one returned true. Fixes CID 43512 | ||||
* | | Merge branch 'MacFixes' | Tycho | 2014-04-02 | 1 | -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 Barney | 2014-03-25 | 1 | -0/+5 |
| | | | | | | | | Also had to undefine TOLUA_TEMPLATE_BIND a couple of times. | ||||
* | | Added HOOK_PROJECTILE_HIT_BLOCK. | STRWarrior | 2014-03-29 | 1 | -0/+20 |
| | | |||||
* | | Added HOOK_PROJECTILE_HIT_ENTITY | STRWarrior | 2014-03-29 | 1 | -0/+20 |
| | | |||||
* | | Add SpreadSource | Howaner | 2014-03-27 | 1 | -2/+2 |
| | | |||||
* | | Add HOOK_BLOCK_SPREAD | Howaner | 2014-03-27 | 1 | -0/+21 |
|/ | |||||
* | Moved Lua API registering into a separate function. | madmaxoft | 2014-03-12 | 1 | -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. | madmaxoft | 2014-02-17 | 1 | -0/+8 |
| | | | | Fixes #693. | ||||
* | Merge pull request #585 from daniel0916/hooks | Mattes D | 2014-02-01 | 1 | -0/+20 |
|\ | | | | | Added "player destroying" and "player destroyed" hooks | ||||
| * | Removed "player destroying" hook | daniel0916 | 2014-02-01 | 1 | -20/+0 |
| | | |||||
| * | Added "player destroying" and "player destroyed" hooks | daniel0916 | 2014-01-25 | 1 | -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. | madmaxoft | 2014-01-29 | 1 | -17/+35 |
| | | | | | | | | Except for the Info.lua file which gets loaded always last. Implements #597. | ||||
* | | Implemented cPluginManager:CallPlugin() API. | madmaxoft | 2014-01-21 | 1 | -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. | madmaxoft | 2014-01-13 | 1 | -1/+1 |
| | | | | Has been replaced by cMonster. | ||||
* | A couple touchups | Bill Derouin | 2014-01-08 | 1 | -2/+3 |
| | |||||
* | Add missing plugin error | Bill Derouin | 2014-01-07 | 1 | -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. | madmaxoft | 2014-01-07 | 1 | -1/+32 |
| | | | | Note that MCS doesn't currently handle any channel registrations, this will come later on. | ||||
* | OnPlayerFishing doesn't have a const cItems anymore | STRWarrior | 2014-01-01 | 1 | -1/+1 |
| | |||||
* | implemented the recommendations Xoft gave. | STRWarrior | 2013-12-31 | 1 | -4/+4 |
| | |||||
* | Implented OnPlayerFishing and OnPlayerFished. | STRWarrior | 2013-12-30 | 1 | -0/+40 |
| | |||||
* | Added HOOK_PLUGINS_LOADED. | madmaxoft | 2013-12-29 | 1 | -0/+18 |
| | | | | This fixes #482. | ||||
* | Replaced esCreeper with esMonster. | madmaxoft | 2013-12-23 | 1 | -1/+1 |
| | | | | Any monster will be able to explode, and also this fixes #425. | ||||
* | Renamed back EntityAnimation to PlayerAnimation | Tiger Wang | 2013-12-18 | 1 | -4/+4 |
| | | | | | This fixes #411 and partially reverts 30ead790490f04248b861db79fddde9148b552f4 | ||||
* | Added a HOOK_WORLD_STARTED hook and a cRoot::CreateAndInitializeWorld function for plugins. | STRWarrior | 2013-12-11 | 1 | -0/+15 |
| | |||||
* | Fixed tolua++ compilation. | madmaxoft | 2013-12-08 | 1 | -1/+1 |
| | | | | Duplicate files, wrong includes, const-incorrect code... | ||||
* | Merge branch 'master' of https://github.com/mc-server/MCServer into fixesnfeatures | Tiger Wang | 2013-12-08 | 1 | -4/+4 |
| | | | | | | | Conflicts: src/Bindings/Bindings.cpp src/Bindings/Bindings.h src/Blocks/BlockHandler.cpp | ||||
* | Moved bindings-related to a Bindings subfolder. | madmaxoft | 2013-12-08 | 1 | -0/+1471 |
Ref.: #407 |