Tiger Wang
a26541a7c3
En masse NULL -> nullptr replace
2014-10-22 20:12:49 -07:00
Mattes D
eeb580a74e
Functions in cPluginManager get references instead of pointers.
2014-10-15 19:09:09 +02:00
Tycho
6ffb7835e7
Removed a few unnessicary includes
2014-09-26 16:26:03 +01:00
STRWarrior
3a113e3a75
Merge pull request #1339 from mc-server/Hooks
...
Added HOOK_SERVER_PING
2014-08-20 22:57:48 +02:00
Howaner
4da61e67d7
Renamed a_Motd to a_ServerDescription.
2014-08-20 22:22:38 +02:00
Howaner
cf5ab14ca5
Added a_ClientHandle to the HOOK_SERVER_PING hook.
2014-08-20 22:19:50 +02:00
Howaner
228dd61995
Added HOOK_SERVER_PING
2014-08-20 16:01:30 +02:00
Howaner
a68c70c900
Better OnPlayerMoving hook.
2014-08-16 18:44:14 +02:00
Howaner
9395cf0bca
First implementation of HOOK_SERVER_PING.
2014-08-16 18:02:16 +02:00
madmaxoft
93d29555e5
Style: Normalized to no spaces before closing parenthesis.
2014-07-21 17:40:43 +02:00
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
madmaxoft
8f65d13d1b
Merge remote-tracking branch 'origin/HandleCommand'
2014-07-04 15:41:48 +02:00
Tiger Wang
a0d2df9327
Tailored death messages
2014-07-04 10:55:09 +01:00
Howaner
4a9002045b
Removed foodlevel-change possibility. Plugins can cancel the event and use cPlayer:SetFoodLevel()
2014-07-02 14:46:00 +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
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
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
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
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
STRWarrior
36e1e57d03
Using recommendations (I think)
2014-03-30 17:21:13 +02:00
STRWarrior
66f1bb7b67
Added a BlockHitPos parameter to OnProjectileHitBlock
2014-03-30 14:04:44 +02:00
STRWarrior
47d5395d24
Added a blockface parameter to the OnProjectileHitBlock hook.
2014-03-30 13:44:28 +02:00
STRWarrior
ec4638a228
Added HOOK_PROJECTILE_HIT_BLOCK.
2014-03-29 16:00:45 +01:00
STRWarrior
339d555111
Added HOOK_PROJECTILE_HIT_ENTITY
2014-03-29 15:26:41 +01:00
madmaxoft
773ce7fde6
Fixed non-virtual destructors warnings.
2014-03-28 21:35:45 +01:00
Howaner
3774b1be64
Add SpreadSource
2014-03-27 23:20:28 +01:00
Howaner
c4a8336e84
Add HOOK_BLOCK_SPREAD
2014-03-27 23:20:28 +01:00
madmaxoft
1a26f05ed0
Added cPluginManager:GetPluginsPath() to the Lua API.
2014-02-17 23:36:39 +01:00
Mattes D
33759197e9
Merge pull request #585 from daniel0916/hooks
...
Added "player destroying" and "player destroyed" hooks
2014-02-01 05:08:08 -08:00
daniel0916
dbbd47b96d
Removed "player destroying" hook
2014-02-01 13:27:44 +01:00
daniel0916
bac750b24e
Added "player destroying" and "player destroyed" hooks
...
Hooks:
HOOK_PLAYER_DESTROYING
HOOK_PLAYER_DESTROYED
Idea from: https://github.com/mc-server/MCServer/issues/473
2014-01-25 11:25:22 +01:00
madmaxoft
2a018cfa49
Implemented cPluginManager:CallPlugin() API.
...
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.
2014-01-21 23:00:35 +01:00
madmaxoft
e353f29d4a
Plugin messages are received and handed to plugins.
...
Note that MCS doesn't currently handle any channel registrations, this will come later on.
2014-01-07 17:47:20 +01:00
STRWarrior
db00a36ff8
OnPlayerFishing doesn't have a const cItems anymore
2014-01-01 15:09:53 +01:00
STRWarrior
020a8b457d
implemented the recommendations Xoft gave.
2013-12-31 14:53:10 +01:00
STRWarrior
cd435ffca9
Implented OnPlayerFishing and OnPlayerFished.
2013-12-30 22:56:08 +01:00
Tycho Bickerstaff
94ca07cfbf
Merge branch 'master' of github.com:mc-server/MCServer
2013-12-22 13:19:27 +00:00