This hook is called after a player copied an area using //copy

Callback function

The default name for the callback function is OnAreaCopied. It has the following signature:
function OnAreaCopied(a_Player, a_World, a_CopiedAreaCuboid) 


Name Type Notes
Player cPlayer The player who copied 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.

Code examples

Registering the callback

cPluginManager:CallPlugin("WorldEdit", "AddHook", "OnAreaCopied", "MyPluginName", "MyCallbackName");