RegisterPermission accept a callback
Merge PR to fix grammar and standardize English (#348)