Changed CommandPermissionsHandler to use Actor.
Fixed 'break' being 'return' in LegacyCommandsHandler.