From 8b1a8bee3437f5d8f865e77e27ae15ad4c690f10 Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Wed, 13 Feb 2013 19:22:08 +0000 Subject: Added HOOK_WEATHER_CHANGING. http://www.mc-server.org/support/index.php?do=details&task_id=299 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1210 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Plugin.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'source/Plugin.cpp') diff --git a/source/Plugin.cpp b/source/Plugin.cpp index 736460e87..968f8c1f6 100644 --- a/source/Plugin.cpp +++ b/source/Plugin.cpp @@ -4,6 +4,7 @@ #include "Plugin.h" #include "Pawn.h" #include "Player.h" +#include "World.h" @@ -502,7 +503,7 @@ bool cPlugin::OnUpdatingSign(cWorld * a_World, int a_BlockX, int a_BlockY, int a -bool cPlugin::OnWeatherChanged(cWorld * a_World) +bool cPlugin::OnWeatherChanged(cWorld & a_World) { UNUSED(a_World); return false; @@ -512,6 +513,17 @@ bool cPlugin::OnWeatherChanged(cWorld * a_World) +bool cPlugin::OnWeatherChanging(cWorld & a_World, eWeather & a_Weather) +{ + UNUSED(a_World); + UNUSED(a_Weather); + return false; +} + + + + + bool cPlugin::HandleCommand(const AStringVector & a_Split, cPlayer * a_Player) { UNUSED(a_Split); -- cgit v1.2.3