======  OnPlayerAnimation hook callback function ======
This callback is called when the server receives an Animation packet (0x12) from the client.

For the list of animations that are sent by the client, see the Protocol wiki:
http://wiki.vg/Protocol#0x12

===== Function signature =====
<code lua>
function OnPlayerAnimation(Player, Animation)
</code>
Parameters:
| Player | [[API:cPlayer|cPlayer]] | The player from whom the packet was received |
| Animation | number | The kind of the animation |

===== Return values =====
If the function returns false or no value, the next plugin's callback is called. Afterwards, the server broadcasts the animation packet to all nearby clients.
If the function returns true, no other callback is called for this event and the packet is not broadcasted.

===== Registering the callback =====
To register your plugin to receive a callback through this function, use the hook [[api:plugin:hooks|HOOK_PLAYER_ANIMATION]]
<code lua>
PluginManager = cPluginManager:GetPluginManager()
PluginManager:AddHook(Plugin, cPluginManager.HOOK_PLAYER_ANIMATION)
</code>