diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-07-02 14:49:08 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-07-02 14:49:08 +0200 |
commit | 835d00428c2af43050fa248ab988c431ec1be152 (patch) | |
tree | 9c10b4c37bc761d7369bed2ec20f166315a6b5d6 /MCServer/Plugins/APIDump/Hooks | |
parent | Removed foodlevel-change possibility. Plugins can cancel the event and use cPlayer:SetFoodLevel() (diff) | |
download | cuberite-835d00428c2af43050fa248ab988c431ec1be152.tar cuberite-835d00428c2af43050fa248ab988c431ec1be152.tar.gz cuberite-835d00428c2af43050fa248ab988c431ec1be152.tar.bz2 cuberite-835d00428c2af43050fa248ab988c431ec1be152.tar.lz cuberite-835d00428c2af43050fa248ab988c431ec1be152.tar.xz cuberite-835d00428c2af43050fa248ab988c431ec1be152.tar.zst cuberite-835d00428c2af43050fa248ab988c431ec1be152.zip |
Diffstat (limited to '')
-rw-r--r-- | MCServer/Plugins/APIDump/Hooks/OnPlayerFoodLevelChange.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnPlayerFoodLevelChange.lua b/MCServer/Plugins/APIDump/Hooks/OnPlayerFoodLevelChange.lua index 5a6fc862a..53637d5f1 100644 --- a/MCServer/Plugins/APIDump/Hooks/OnPlayerFoodLevelChange.lua +++ b/MCServer/Plugins/APIDump/Hooks/OnPlayerFoodLevelChange.lua @@ -2,17 +2,17 @@ return { HOOK_PLAYER_FOOD_LEVEL_CHANGE = { - CalledWhen = "Called before the player food level changed. Plugin may override / refuse.", + CalledWhen = "Called before the player food level changed. Plugin may override", DefaultFnName = "OnPlayerFoodLevelChange", -- also used as pagename Desc = [[ This hook is called before the food level changes. The food level is not changed yet, plugins may choose - to override the new food level or refuse the change. + to refuse the change. ]], Params = { { Name = "Player", Type = "{{cPlayer}}", Notes = "The player who changes the food level." }, - { Name = "NewFoodLevel", Type = "number", Notes = "The new food level. You can override it." }, + { Name = "NewFoodLevel", Type = "number", Notes = "The new food level." }, }, Returns = [[ If the function returns false or no value, the next plugin's callback is called. Afterwards, the |