summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNiLSPACE <NiLSPACE@users.noreply.github.com>2015-10-12 11:17:56 +0200
committerNiLSPACE <NiLSPACE@users.noreply.github.com>2015-10-12 11:17:56 +0200
commit24ebae8c4fb0903a74854ba446a4298427968e3e (patch)
treedc0a239df340d71ccf0b2ff6bcd53188cff369a5
parentAPIDump: Added a missing endline to the NewlyUndocumented output file. (diff)
parentAdded missing hooks to cPluginManager (diff)
downloadcuberite-24ebae8c4fb0903a74854ba446a4298427968e3e.tar
cuberite-24ebae8c4fb0903a74854ba446a4298427968e3e.tar.gz
cuberite-24ebae8c4fb0903a74854ba446a4298427968e3e.tar.bz2
cuberite-24ebae8c4fb0903a74854ba446a4298427968e3e.tar.lz
cuberite-24ebae8c4fb0903a74854ba446a4298427968e3e.tar.xz
cuberite-24ebae8c4fb0903a74854ba446a4298427968e3e.tar.zst
cuberite-24ebae8c4fb0903a74854ba446a4298427968e3e.zip
-rw-r--r--Server/Plugins/APIDump/Classes/Plugins.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/Server/Plugins/APIDump/Classes/Plugins.lua b/Server/Plugins/APIDump/Classes/Plugins.lua
index 0d0aae04f..f892ad8f6 100644
--- a/Server/Plugins/APIDump/Classes/Plugins.lua
+++ b/Server/Plugins/APIDump/Classes/Plugins.lua
@@ -120,6 +120,8 @@ cPluginManager.AddHook(cPluginManager.HOOK_CHAT, OnChatMessage);
HOOK_CRAFTING_NO_RECIPE = { Notes = "Called when a player has items in the crafting slots and the server cannot locate any recipe. Plugin may provide a recipe." },
HOOK_DISCONNECT = { Notes = "Called after the player has disconnected." },
HOOK_ENTITY_ADD_EFFECT = { Notes = "Called when an effect is being added to an {{cEntity|entity}}. Plugin may refuse the effect." },
+ HOOK_ENTITY_CHANGED_WORLD = { Notes = "Called after a entity has changed the world." },
+ HOOK_ENTITY_CHANGING_WORLD = { Notes = "Called before a entity has changed the world. Plugin may disallow a entity to change the world." },
HOOK_ENTITY_TELEPORT = { Notes = "Called when an {{cEntity|entity}} is being teleported. Plugin may refuse the teleportation." },
HOOK_EXECUTE_COMMAND = { Notes = "Called when a client sends a chat message that is recognized as a command, before handing that command to the regular command handler. A plugin may stop the command from being handled. This hook is called even when the player doesn't have permissions for the command." },
HOOK_EXPLODED = { Notes = "Called after an explosion has been processed in a {{cWorld|world}}." },
@@ -127,6 +129,7 @@ cPluginManager.AddHook(cPluginManager.HOOK_CHAT, OnChatMessage);
HOOK_HANDSHAKE = { Notes = "Called when a Handshake packet is received from a client." },
HOOK_HOPPER_PULLING_ITEM = { Notes = "Called when a hopper is pulling an item from the container above it." },
HOOK_HOPPER_PUSHING_ITEM = { Notes = "Called when a hopper is pushing an item into the container it is aimed at." },
+ HOOK_KILLED = { Notes = "Called when an entity has been killed." },
HOOK_KILLING = { Notes = "Called when an entity has just been killed. A plugin may resurrect the entity by setting its health to above zero." },
HOOK_LOGIN = { Notes = "Called when a Login packet is sent to the client, before the client is queued for authentication." },
HOOK_PLAYER_ANIMATION = { Notes = "Called when a client send the Animation packet." },