I want create a plugin that change the context setting alfter duplicate context. I don't found devent OnContextAfterDuplicate, but i try to use OnContextBeforeSave. But i can't able to have the current context obyect when i save the context i recive only mgr.
In both OnContextSave and OnContextBeforeSave, the context being saved should be available as $context. You may be using $modx->context, which will always be 'mgr' when you are in the Manager.