OnAreaCopying
This hook is called when a player tries to copy an area.
Callback function
The default name for the callback function is OnAreaCopying. It has the following signature:function OnAreaCopying(a_Player, a_World, a_CopiedAreaCuboid)
Parameters:
Name | Type | Notes |
---|---|---|
Player | cPlayer | The player who tries to copy the area |
World | cWorld | The world where the changed happened |
CopiedArea | cCuboid | The area the player has copied |
If the plugin returns false or no value, WorldEdit will call other plugins' callbacks for this event. If a plugin returns true, no other callback is called for this event, and the event is blocked.
Code examples
Registering the callback
cPluginManager:CallPlugin("WorldEdit", "AddHook", "OnAreaCopying", "MyPluginName", "MyCallbackName");