summaryrefslogtreecommitdiffstats
path: root/src/Bindings/PluginManager.cpp
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-08-16 22:29:41 +0200
committerMattes D <github@xoft.cz>2014-08-16 22:29:41 +0200
commite045a25e10e1aff47c35fae44c6b585df061c612 (patch)
treeb2c69b5faf2f199e30bdf9c2ee3b6cd76a125ef7 /src/Bindings/PluginManager.cpp
parentMerge pull request #1308 from mc-server/logger (diff)
parentUpdated HOOK_PLAYER_MOVING documentation. (diff)
downloadcuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar
cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.gz
cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.bz2
cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.lz
cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.xz
cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.zst
cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.zip
Diffstat (limited to 'src/Bindings/PluginManager.cpp')
-rw-r--r--src/Bindings/PluginManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp
index 89bfe3566..dbc359f0e 100644
--- a/src/Bindings/PluginManager.cpp
+++ b/src/Bindings/PluginManager.cpp
@@ -849,14 +849,14 @@ bool cPluginManager::CallHookPlayerLeftClick(cPlayer & a_Player, int a_BlockX, i
-bool cPluginManager::CallHookPlayerMoving(cPlayer & a_Player)
+bool cPluginManager::CallHookPlayerMoving(cPlayer & a_Player, const Vector3d a_OldPosition, const Vector3d a_NewPosition)
{
FIND_HOOK(HOOK_PLAYER_MOVING);
VERIFY_HOOK;
for (PluginList::iterator itr = Plugins->second.begin(); itr != Plugins->second.end(); ++itr)
{
- if ((*itr)->OnPlayerMoved(a_Player))
+ if ((*itr)->OnPlayerMoving(a_Player, a_OldPosition, a_NewPosition))
{
return true;
}