madmaxoft
5e198c6730
Basic style fixes.
2014-07-17 22:50:58 +02:00
madmaxoft
2423fbf2ef
Normalized comments.
...
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.
2014-07-17 22:15:34 +02:00
madmaxoft
7d0fc85d00
Merge branch 'master' into potions
2014-07-17 11:01:26 +02:00
Mattes D
98244e96d1
Merge pull request #1193 from mc-server/deathmessages
...
Death messages
2014-07-17 10:12:22 +02:00
Tiger Wang
2189f37c20
Resolved backwards compatibility issues
2014-07-16 11:38:52 +01:00
archshift
4e6395d6ff
For now, removed creator member from Entity Effect for pointer safety
2014-07-11 17:27:29 -07:00
archshift
e824cd09b3
Merge remote-tracking branch 'origin/master' into potions
...
Conflicts:
src/Entities/Player.cpp
src/Entities/ProjectileEntity.cpp
2014-07-09 23:28:27 -07:00
Mattes D
7e3b26e7ba
Merge pull request #1144 from mc-server/LuaCodeGen
...
Lua code gen
2014-07-06 14:44:52 +02:00
madmaxoft
c7a5347cd6
cPluginManager: Reformatted the switch statement.
2014-07-04 15:54:39 +02:00
madmaxoft
8f65d13d1b
Merge remote-tracking branch 'origin/HandleCommand'
2014-07-04 15:41:48 +02:00
STRWarrior
41747f0500
Moved sending error messages to cPluginManager:CallHookChat
2014-07-04 15:07:41 +02:00
Tiger Wang
a0d2df9327
Tailored death messages
2014-07-04 10:55:09 +01:00
madmaxoft
2dbed03cbc
Changed OnWeatherChanging hook to always read the returned weather.
...
Ref.: http://forum.mc-server.org/showthread.php?tid=1512
2014-07-03 17:49:21 +02:00
Mattes D
9204c8a124
Merge pull request #1139 from Howaner/Hooks
...
Add hook HOOK_PLAYER_FOOD_LEVEL_CHANGE
2014-07-02 16:33:24 +02:00
Howaner
4a9002045b
Removed foodlevel-change possibility. Plugins can cancel the event and use cPlayer:SetFoodLevel()
2014-07-02 14:46:00 +02:00
madmaxoft
b6d5d50b31
Tolua generates LuaState_Call.inc file.
2014-07-01 22:29:39 +02:00
madmaxoft
bb0e88fcf8
Initial codegen for LuaState_Call.inc.
2014-07-01 22:29:38 +02:00
madmaxoft
0dfaad4123
Fixed a possibly unused variable.
2014-07-01 22:28:58 +02:00
Howaner
8e11f7a1f6
Fixes.
2014-06-30 21:50:40 +02:00
Howaner
aa753a92c0
Add new hook: HOOK_PLAYER_FOOD_LEVEL_CHANGE
2014-06-30 15:12:56 +02:00
STRWarrior
085cb4256e
Fixed doxycomments
2014-06-28 21:55:21 +02:00
Mattes D
1495bba17c
Fixed a silly path error in #include.
2014-06-28 18:20:46 +02:00
Mattes D
563f706422
Removed the md5 library, obsoleted by PolarSSL.
...
Fixes #1130 .
2014-06-27 19:34:53 +02:00
archshift
e8143de01b
Nullify deleted pointers.
2014-06-19 01:49:56 -07:00
archshift
f5529e544c
EntityEffects.x -> EntityEffect.x, Object-Oriented effects
...
Changed effect map to take a pointer of the effect as a result.
2014-06-18 22:54:14 -07:00
STRWarrior
e0a9f37d90
(Force)ExecuteCommand returns the CommandResult enums
...
Exported and documented the CommandResult enums
2014-06-18 12:13:01 +02:00
madmaxoft
fa1d85feca
Added the OnEntityAddEffect hook.
2014-06-17 11:39:22 -07:00
archshift
87b1bfaf2a
Moved Effects.h to EntityEffects.h, added initial impl
2014-06-17 11:17:32 -07:00
STRWarrior
008a6ce311
Added crBlocked and crNoPermission
2014-06-17 16:19:31 +02:00
STRWarrior
15ae4ce233
HandleCommand now returns an CommandResult enum.
2014-06-17 14:55:15 +02:00
STRWarrior
8928310fd8
Fixed possible confusion.
...
If a command handler gets an error then the player will receive an unknown command error. This can be confusing for players.
2014-06-17 13:27:04 +02:00
Mattes D
f1e3010839
Fixed bindings generation for Win64 builds.
...
Fixes #1092 .
2014-06-14 15:47:37 +02:00
Tiger Wang
4b28a24514
Reduced cPluginManager code duplication
2014-06-14 09:51:42 +01:00
tycho
9254666a85
automaticlly build tolua and generate bindings as part of build.
2014-06-12 18:00:53 +01:00
madmaxoft
b3300e3854
Added cBlockArea:GetCoordRange to Lua API.
2014-06-11 14:22:27 +02:00
madmaxoft
02b509b81d
ToLua can now be run in pure-lua mode.
...
See the src/Bindings/AllToLua_lua.bat for usage example.
2014-06-09 17:05:22 +02:00
madmaxoft
d92520016d
Fixed OnProjectileHitBlock bindings.
...
Also sorted the various cLuaState::Push() functions.
2014-06-03 19:29:23 +02:00
Mattes D
61edb83ce5
Merge pull request #844 from mc-server/ProjectileHitBlock
...
OnProjectileHitBlock tweak.
2014-06-01 20:10:03 +02:00
STRWarrior
319169eafb
Made a_BlockHitPos a reference
2014-06-01 14:06:47 +02:00
STRWarrior
d1b23060ad
Used recommendations
2014-05-31 14:14:55 +02:00
madmaxoft
b9d306a801
Fixed bindings for cCompositeChat:SetMessageType().
2014-05-30 22:42:00 +02:00
Mattes D
ac00568183
Merge pull request #998 from mc-server/StatManager
...
Statistic Manager
2014-05-18 22:30:34 +02:00
andrew
c7c3724a3e
Statistic Manager
2014-05-11 14:57:06 +03:00
STRWarrior
079f8cd535
Fixed the console saying no plugins are loaded.
2014-05-10 17:55:39 +02:00
Mattes D
fb58ef55be
Fixed MSVC 64-bit build warnings.
2014-05-09 18:32:03 +02:00
madmaxoft
4d704255de
HOOK_DISCONNECT has cClientHandle as its first parameter.
...
Ref.: #655 .
2014-05-02 12:35:34 +02:00
madmaxoft
06da2c86b4
Fixed warnings in ManualBindings.
2014-05-01 23:43:11 +02:00
madmaxoft
d950c8346f
Fixed warnings in Lua helpers.
2014-05-01 23:38:35 +02:00
Tycho
ee354a405b
Fixed OnPluginMessage hook not exiting early.
...
OnPluginMessage hook would call all plugins even after one returned true.
Fixes CID 43512
2014-04-27 12:37:08 -07:00
jfhumann
26568a852e
Fixed a memory leak in tolua_cWorld_ChunkStay. (CID 43618)
2014-04-26 01:35:25 +02:00