summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/Hooks/OnWeatherChanging.lua
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2015-08-26 10:58:51 +0200
committerMattes D <github@xoft.cz>2015-09-05 22:01:21 +0200
commitdac97826f7d0c9b9135c1a08c4d5f16b61494bd1 (patch)
treeec17a9703fe734956e4f151cb5306befc4fd7571 /MCServer/Plugins/APIDump/Hooks/OnWeatherChanging.lua
parentMerge pull request #2459 from cuberite/fixes (diff)
downloadcuberite-dac97826f7d0c9b9135c1a08c4d5f16b61494bd1.tar
cuberite-dac97826f7d0c9b9135c1a08c4d5f16b61494bd1.tar.gz
cuberite-dac97826f7d0c9b9135c1a08c4d5f16b61494bd1.tar.bz2
cuberite-dac97826f7d0c9b9135c1a08c4d5f16b61494bd1.tar.lz
cuberite-dac97826f7d0c9b9135c1a08c4d5f16b61494bd1.tar.xz
cuberite-dac97826f7d0c9b9135c1a08c4d5f16b61494bd1.tar.zst
cuberite-dac97826f7d0c9b9135c1a08c4d5f16b61494bd1.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/Hooks/OnWeatherChanging.lua')
-rw-r--r--MCServer/Plugins/APIDump/Hooks/OnWeatherChanging.lua35
1 files changed, 0 insertions, 35 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnWeatherChanging.lua b/MCServer/Plugins/APIDump/Hooks/OnWeatherChanging.lua
deleted file mode 100644
index bb809af11..000000000
--- a/MCServer/Plugins/APIDump/Hooks/OnWeatherChanging.lua
+++ /dev/null
@@ -1,35 +0,0 @@
-return
-{
- HOOK_WEATHER_CHANGING =
- {
- CalledWhen = "The weather is about to change",
- DefaultFnName = "OnWeatherChanging", -- also used as pagename
- Desc = [[
- This hook is called when the current weather has expired and a new weather is selected. Plugins may
- override the new weather being set.</p>
- <p>
- The new weather setting is sent to the clients only after this hook has been processed.</p>
- <p>
- See also the {{OnWeatherChanged|HOOK_WEATHER_CHANGED}} hook for a similar hook called after the
- change.
- ]],
- Params =
- {
- { Name = "World", Type = "{{cWorld}}", Notes = "World for which the weather is changing" },
- { Name = "Weather", Type = "number", Notes = "The newly selected weather. One of wSunny, wRain, wStorm" },
- },
- Returns = [[
- The hook handler can return up to two values. If the first value is false or not present, the server
- calls other plugins' callbacks and finally sets the weather. If it is true, the server doesn't call any
- more callbacks for this hook. The second value returned is used as the new weather. If no value is
- given, the weather from the parameters is used as the weather. Returning false as the first value and a
- specific weather constant as the second value makes the server call the rest of the hook handlers with
- the new weather value.
- ]],
- }, -- HOOK_WEATHER_CHANGING
-}
-
-
-
-
-